searchMeta method
Additive metadata-first low-level search lane.
vectorWeight / bm25Weight default to defaultVectorWeight /
defaultBm25Weight.
Implementation
Future<SearchMetaResult> searchMeta(
String query, {
int topK = 10,
double? vectorWeight,
double? bm25Weight,
List<int>? sourceIds,
int adjacentChunks = 0,
String? collectionId,
}) async {
_ensureEmbeddingFingerprintUnlocked();
final service = await _serviceForCollection(collectionId);
await _flushIndex(collectionId: collectionId);
return service.searchMeta(
query,
topK: topK,
vectorWeight: vectorWeight ?? defaultVectorWeight,
bm25Weight: bm25Weight ?? defaultBm25Weight,
sourceIds: sourceIds,
adjacentChunks: adjacentChunks,
);
}