searchHybridWithContext method

Future<RagSearchResult> searchHybridWithContext(
  1. String query, {
  2. int topK = 10,
  3. int tokenBudget = 2000,
  4. ContextStrategy strategy = ContextStrategy.relevanceFirst,
  5. int adjacentChunks = 0,
  6. double vectorWeight = kDefaultVectorWeight,
  7. double bm25Weight = kDefaultBm25Weight,
  8. bool singleSourceMode = false,
  9. List<int>? sourceIds,
})

Implementation

Future<RagSearchResult> searchHybridWithContext(
  String query, {
  int topK = 10,
  int tokenBudget = 2000,
  ContextStrategy strategy = ContextStrategy.relevanceFirst,
  int adjacentChunks = 0,
  double vectorWeight = kDefaultVectorWeight,
  double bm25Weight = kDefaultBm25Weight,
  bool singleSourceMode = false,
  List<int>? sourceIds,
}) =>
    _engine.searchHybridWithContext(
      query,
      topK: topK,
      tokenBudget: tokenBudget,
      strategy: strategy,
      adjacentChunks: adjacentChunks,
      vectorWeight: vectorWeight,
      bm25Weight: bm25Weight,
      singleSourceMode: singleSourceMode,
      sourceIds: sourceIds,
      collectionId: _collectionId,
    );