Method SearchTextAsync(string, int, string?, IExchange?, CancellationToken)

Assembly: redb.Route.Llm.dll

Keyword fallback — returns up to topK chunks whose text
contains query (case-insensitive substring), ranked by
occurrence count. For corpora with no embeddings, or callers with no query
vector (e.g. a small structured rule-set where exact terms beat semantic
similarity). Backends push the substring filter down (SQL LIKE) and
rank only the matched set — no full-table scan.

The default implementation throws ;
stores that can express a substring filter override it. Adding this as a
default member keeps the interface source-compatible for existing
implementers.

public Task<IReadOnlyList<KnowledgeSearchResult>> SearchTextAsync(string query, int topK, string? collection = null, IExchange? exchange = null, CancellationToken ct = default)