Class AzureAiSearchContentRetriever

java.lang.Object
dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
All Implemented Interfaces:
ContentRetriever, EmbeddingStore<TextSegment>

public class AzureAiSearchContentRetriever extends AbstractAzureAiSearchEmbeddingStore implements ContentRetriever
Represents Azure AI Search Service as a ContentRetriever.
This class supports 4 AzureAiSearchQueryTypes:
- VECTOR: Uses the vector search algorithm to find the most similar TextSegments. More details can be found here.
- FULL_TEXT: Uses the full text search to find the most similar TextSegments. More details can be found here.
- HYBRID: Uses the hybrid search (vector + full text) to find the most similar TextSegments. More details can be found here.
- HYBRID_WITH_RERANKING: Uses the hybrid search (vector + full text) to find the most similar TextSegments, and uses the semantic re-ranker algorithm to rank the results. More details can be found here.
  • Constructor Details

    • AzureAiSearchContentRetriever

      public AzureAiSearchContentRetriever(String endpoint, com.azure.core.credential.AzureKeyCredential keyCredential, com.azure.core.credential.TokenCredential tokenCredential, boolean createOrUpdateIndex, int dimensions, com.azure.search.documents.indexes.models.SearchIndex index, String indexName, EmbeddingModel embeddingModel, int maxResults, double minScore, AzureAiSearchQueryType azureAiSearchQueryType, AzureAiSearchFilterMapper filterMapper, Filter filter)
  • Method Details