getRelevantDocuments method
Future<List<Document> >
getRelevantDocuments(
- String query, {
- VectorStoreRetrieverOptions? options,
override
Get the most relevant documents for a given query.
query
- The query to search for.options
- Retrieval options.
Implementation
@override
Future<List<Document>> getRelevantDocuments(
final String query, {
final VectorStoreRetrieverOptions? options,
}) {
return vectorStore.search(
query: query,
searchType: options?.searchType ?? defaultOptions.searchType,
);
}