@sqlrooms/ai-rag / executeRagSearch
Function: executeRagSearch()
executeRagSearch(
params,state):Promise<RagToolLlmResult>
Execute a RAG search against a given rag slice state. Can be called directly (e.g. from UI components) without going through the AI tool layer.
Parameters
| Parameter | Type |
|---|---|
params | { query: string; database?: string; topK: number; } |
params.query | string |
params.database? | string |
params.topK | number |
state | RagSliceState |
Returns
Promise<RagToolLlmResult>
