|
@@ -809,8 +809,8 @@ export type Store = {
|
|
|
searchVec: (query: string, model: string, limit?: number, collectionName?: string, session?: ILLMSession, precomputedEmbedding?: number[]) => Promise<SearchResult[]>;
|
|
searchVec: (query: string, model: string, limit?: number, collectionName?: string, session?: ILLMSession, precomputedEmbedding?: number[]) => Promise<SearchResult[]>;
|
|
|
|
|
|
|
|
// Query expansion & reranking
|
|
// Query expansion & reranking
|
|
|
- expandQuery: (query: string, model?: string) => Promise<ExpandedQuery[]>;
|
|
|
|
|
- rerank: (query: string, documents: { file: string; text: string }[], model?: string) => Promise<{ file: string; score: number }[]>;
|
|
|
|
|
|
|
+ expandQuery: (query: string, model?: string, intent?: string) => Promise<ExpandedQuery[]>;
|
|
|
|
|
+ rerank: (query: string, documents: { file: string; text: string }[], model?: string, intent?: string) => Promise<{ file: string; score: number }[]>;
|
|
|
|
|
|
|
|
// Document retrieval
|
|
// Document retrieval
|
|
|
findDocument: (filename: string, options?: { includeBody?: boolean }) => DocumentResult | DocumentNotFound;
|
|
findDocument: (filename: string, options?: { includeBody?: boolean }) => DocumentResult | DocumentNotFound;
|