Class VectorStoreSearchParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class VectorStoreSearchParams implements Params
Search a vector store for relevant chunks based on a query and file attributes filter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVectorStoreSearchParams.BuilderA builder for VectorStoreSearchParams.
public final classVectorStoreSearchParams.Bodypublic final classVectorStoreSearchParams.QueryA query string for a search
public final classVectorStoreSearchParams.FiltersA filter to apply based on file attributes.
public final classVectorStoreSearchParams.RankingOptionsRanking options for search.
-
Method Summary
Modifier and Type Method Description final Optional<String>vectorStoreId()final VectorStoreSearchParams.Queryquery()A query string for a search final Optional<VectorStoreSearchParams.Filters>filters()A filter to apply based on file attributes. final Optional<Long>maxNumResults()The maximum number of results to return. final Optional<VectorStoreSearchParams.RankingOptions>rankingOptions()Ranking options for search. final Optional<Boolean>rewriteQuery()Whether to rewrite the natural language query for vector search. final JsonField<VectorStoreSearchParams.Query>_query()Returns the raw JSON value of query. final JsonField<VectorStoreSearchParams.Filters>_filters()Returns the raw JSON value of filters. final JsonField<Long>_maxNumResults()Returns the raw JSON value of maxNumResults. final JsonField<VectorStoreSearchParams.RankingOptions>_rankingOptions()Returns the raw JSON value of rankingOptions. final JsonField<Boolean>_rewriteQuery()Returns the raw JSON value of rewriteQuery. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final VectorStoreSearchParams.BuildertoBuilder()final VectorStoreSearchParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static VectorStoreSearchParams.Builderbuilder()Returns a mutable builder for constructing an instance of VectorStoreSearchParams. -
-
Method Detail
-
vectorStoreId
final Optional<String> vectorStoreId()
-
query
final VectorStoreSearchParams.Query query()
A query string for a search
-
filters
final Optional<VectorStoreSearchParams.Filters> filters()
A filter to apply based on file attributes.
-
maxNumResults
final Optional<Long> maxNumResults()
The maximum number of results to return. This number should be between 1 and 50 inclusive.
-
rankingOptions
final Optional<VectorStoreSearchParams.RankingOptions> rankingOptions()
Ranking options for search.
-
rewriteQuery
final Optional<Boolean> rewriteQuery()
Whether to rewrite the natural language query for vector search.
-
_query
final JsonField<VectorStoreSearchParams.Query> _query()
Returns the raw JSON value of query.
Unlike query, this method doesn't throw if the JSON field has an unexpected type.
-
_filters
final JsonField<VectorStoreSearchParams.Filters> _filters()
Returns the raw JSON value of filters.
Unlike filters, this method doesn't throw if the JSON field has an unexpected type.
-
_maxNumResults
final JsonField<Long> _maxNumResults()
Returns the raw JSON value of maxNumResults.
Unlike maxNumResults, this method doesn't throw if the JSON field has an unexpected type.
-
_rankingOptions
final JsonField<VectorStoreSearchParams.RankingOptions> _rankingOptions()
Returns the raw JSON value of rankingOptions.
Unlike rankingOptions, this method doesn't throw if the JSON field has an unexpected type.
-
_rewriteQuery
final JsonField<Boolean> _rewriteQuery()
Returns the raw JSON value of rewriteQuery.
Unlike rewriteQuery, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final VectorStoreSearchParams.Builder toBuilder()
-
_body
final VectorStoreSearchParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static VectorStoreSearchParams.Builder builder()
Returns a mutable builder for constructing an instance of VectorStoreSearchParams.
The following fields are required:
.query()
-
-
-
-