Interface ContentRetriever

All Known Implementing Classes:
AzureAiSearchContentRetriever, AzureCosmosDBNoSqlContentRetriever, ElasticsearchContentRetriever, EmbeddingStoreContentRetriever, SqlDatabaseContentRetriever, WebSearchContentRetriever

public interface ContentRetriever
Retrieves Contents from an underlying data source using a given Query.
The goal is to retrieve only relevant Contents in relation to a given Query.
The underlying data source can be virtually anything:
- Embedding (vector) store (see EmbeddingStoreContentRetriever)
- Full-text search engine (see AzureAiSearchContentRetriever in the langchain4j-azure-ai-search module)
- Hybrid of vector and full-text search (see AzureAiSearchContentRetriever in the langchain4j-azure-ai-search module)
- Web Search Engine (see WebSearchContentRetriever)
- Knowledge graph (see Neo4jContentRetriever in the langchain4j-community-neo4j-retriever module)
- SQL database (see SqlDatabaseContentRetriever in the langchain4j-experimental-sql module)
- etc.
See Also: