UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

17 lines 623 B
import { EmbeddedContent, EmbeddedContentStore } from "../contentStore"; import { WithScore } from "../VectorStore"; /** Modify the vector search results to add, elevate, or mutate search results after the search has been performed. */ export interface SearchBooster { shouldBoost: ({ text }: { text: string; }) => Promise<boolean>; boost: ({ existingResults, embedding, store, }: { embedding: number[]; existingResults: WithScore<EmbeddedContent>[]; store: EmbeddedContentStore; }) => Promise<WithScore<EmbeddedContent>[]>; } //# sourceMappingURL=SearchBooster.d.ts.map