Class AzureCosmosDBNoSqlContentRetriever
java.lang.Object
dev.langchain4j.store.embedding.azure.cosmos.nosql.AbstractAzureCosmosDBNoSqlEmbeddingStore
dev.langchain4j.rag.content.retriever.azure.cosmos.nosql.AzureCosmosDBNoSqlContentRetriever
- All Implemented Interfaces:
ContentRetriever
,EmbeddingStore<TextSegment>
public class AzureCosmosDBNoSqlContentRetriever
extends AbstractAzureCosmosDBNoSqlEmbeddingStore
implements ContentRetriever
-
Field Summary
Fields inherited from class dev.langchain4j.store.embedding.azure.cosmos.nosql.AbstractAzureCosmosDBNoSqlEmbeddingStore
DEFAULT_CONTAINER_NAME, DEFAULT_DATABASE_NAME, DEFAULT_FULL_TEXT_INDEX_LANGUAGE, DEFAULT_FULL_TEXT_INDEX_PATH, DEFAULT_PARTITION_KEY_PATH, DEFAULT_SEARCH_QUERY_TYPE, DEFAULT_THROUGHPUT, DEFAULT_VECTOR_DATA_TYPE, DEFAULT_VECTOR_DIMENSIONS, DEFAULT_VECTOR_DISTANCE_FUNCTION, DEFAULT_VECTOR_INDEX_PATH, DEFAULT_VECTOR_INDEX_TYPE, filterMapper, USER_AGENT
-
Constructor Summary
ConstructorsConstructorDescriptionAzureCosmosDBNoSqlContentRetriever
(String endpoint, com.azure.core.credential.AzureKeyCredential keyCredential, com.azure.core.credential.TokenCredential tokenCredential, EmbeddingModel embeddingModel, String databaseName, String containerName, String partitionKeyPath, com.azure.cosmos.models.IndexingPolicy indexingPolicy, com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy, com.azure.cosmos.models.CosmosFullTextPolicy cosmosFullTextPolicy, Integer vectorStoreThroughput, AzureCosmosDBSearchQueryType azureCosmosDBSearchQueryType, Integer maxResults, Double minScore, Filter filter) -
Method Summary
Methods inherited from class dev.langchain4j.store.embedding.azure.cosmos.nosql.AbstractAzureCosmosDBNoSqlEmbeddingStore
add, add, add, add, addAll, addAll, deleteContainer, findRelevantWithFullTextRanking, findRelevantWithFullTextSearch, findRelevantWithHybridSearch, initialize, remove, removeAll, search
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.store.embedding.EmbeddingStore
addAll, generateIds, removeAll, removeAll
-
Constructor Details
-
AzureCosmosDBNoSqlContentRetriever
public AzureCosmosDBNoSqlContentRetriever(String endpoint, com.azure.core.credential.AzureKeyCredential keyCredential, com.azure.core.credential.TokenCredential tokenCredential, EmbeddingModel embeddingModel, String databaseName, String containerName, String partitionKeyPath, com.azure.cosmos.models.IndexingPolicy indexingPolicy, com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy, com.azure.cosmos.models.CosmosFullTextPolicy cosmosFullTextPolicy, Integer vectorStoreThroughput, AzureCosmosDBSearchQueryType azureCosmosDBSearchQueryType, Integer maxResults, Double minScore, Filter filter)
-
-
Method Details
-
retrieve
Description copied from interface:ContentRetriever
Retrieves relevantContent
s using a givenQuery
. TheContent
s are sorted by relevance, with the most relevantContent
s appearing at the beginning of the returnedList<Content>
.- Specified by:
retrieve
in interfaceContentRetriever
- Parameters:
query
- TheQuery
to use for retrieval.- Returns:
- A list of retrieved
Content
s.
-