Uses of Class
org.springframework.ai.vectorstore.SearchRequest
Package
Description
Provides classes for advising chat clients.
Provides classes for observing and storing vector data.
-
Uses of SearchRequest in org.springframework.ai.chat.client.advisor
Modifier and TypeMethodDescriptionQuestionAnswerAdvisor.Builder.withSearchRequest
(SearchRequest searchRequest) ModifierConstructorDescriptionQuestionAnswerAdvisor
(VectorStore vectorStore, SearchRequest searchRequest) The QuestionAnswerAdvisor retrieves context information from a Vector Store and combines it with the user's text.QuestionAnswerAdvisor
(VectorStore vectorStore, SearchRequest searchRequest, String userTextAdvise) The QuestionAnswerAdvisor retrieves context information from a Vector Store and combines it with the user's text.QuestionAnswerAdvisor
(VectorStore vectorStore, SearchRequest searchRequest, String userTextAdvise, boolean protectFromBlocking) The QuestionAnswerAdvisor retrieves context information from a Vector Store and combines it with the user's text.QuestionAnswerAdvisor
(VectorStore vectorStore, SearchRequest searchRequest, String userTextAdvise, boolean protectFromBlocking, int order) The QuestionAnswerAdvisor retrieves context information from a Vector Store and combines it with the user's text. -
Uses of SearchRequest in org.springframework.ai.vectorstore
Modifier and TypeMethodDescriptionstatic SearchRequest
SearchRequest.defaults()
Create a newSearchRequest
builder instance with an empty embedding query string.static SearchRequest
SearchRequest.from
(SearchRequest originalSearchRequest) Copy an existingSearchRequest
instance.static SearchRequest
Create a newSearchRequest
builder instance with specified embedding query string.SearchRequest.withFilterExpression
(String textExpression) Document metadata filter expression.SearchRequest.withFilterExpression
(Filter.Expression expression) Retrieves documents by query embedding similarity and matching the filters.SearchRequest.withSimilarityThreshold
(double threshold) Similarity threshold score to filter the search response by.SearchRequest.withSimilarityThresholdAll()
Sets disables the similarity threshold by setting it to 0.0 - all results are accepted.SearchRequest.withTopK
(int topK) Modifier and TypeMethodDescriptionCassandraVectorStore.doSimilaritySearch
(SearchRequest request) ChromaVectorStore.doSimilaritySearch
(SearchRequest request) CosmosDBVectorStore.doSimilaritySearch
(SearchRequest request) ElasticsearchVectorStore.doSimilaritySearch
(SearchRequest searchRequest) GemFireVectorStore.doSimilaritySearch
(SearchRequest request) HanaCloudVectorStore.doSimilaritySearch
(SearchRequest request) MilvusVectorStore.doSimilaritySearch
(SearchRequest request) MongoDBAtlasVectorStore.doSimilaritySearch
(SearchRequest request) Neo4jVectorStore.doSimilaritySearch
(SearchRequest request) OpenSearchVectorStore.doSimilaritySearch
(SearchRequest searchRequest) OracleVectorStore.doSimilaritySearch
(SearchRequest request) PgVectorStore.doSimilaritySearch
(SearchRequest request) PineconeVectorStore.doSimilaritySearch
(SearchRequest request) RedisVectorStore.doSimilaritySearch
(SearchRequest request) SimpleVectorStore.doSimilaritySearch
(SearchRequest request) TypesenseVectorStore.doSimilaritySearch
(SearchRequest request) WeaviateVectorStore.doSimilaritySearch
(SearchRequest request) static SearchRequest
SearchRequest.from
(SearchRequest originalSearchRequest) Copy an existingSearchRequest
instance.CoherenceVectorStore.similaritySearch
(SearchRequest request) PineconeVectorStore.similaritySearch
(SearchRequest request, String namespace) VectorStore.similaritySearch
(SearchRequest request) Retrieves documents by query embedding similarity and metadata filters to retrieve exactly the number of nearest-neighbor results that match the request criteria. -
Uses of SearchRequest in org.springframework.ai.vectorstore.azure
-
Uses of SearchRequest in org.springframework.ai.vectorstore.mariadb
-
Uses of SearchRequest in org.springframework.ai.vectorstore.observation
Modifier and TypeMethodDescriptionAbstractObservationVectorStore.doSimilaritySearch
(SearchRequest request) Perform the actual similarity search operation.void
VectorStoreObservationContext.setQueryRequest
(SearchRequest queryRequest) AbstractObservationVectorStore.similaritySearch
(SearchRequest request) VectorStoreObservationContext.Builder.withQueryRequest
(SearchRequest request) -
Uses of SearchRequest in org.springframework.ai.vectorstore.qdrant
Modifier and TypeMethodDescriptionQdrantVectorStore.doSimilaritySearch
(SearchRequest request) Performs a similarity search on the vector store.