Skip to content

@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

ParameterType
params{ query: string; database?: string; topK: number; }
params.querystring
params.database?string
params.topKnumber
stateRagSliceState

Returns

Promise<RagToolLlmResult>