getSimilarInsights
chainalign-backend / services/vectorDbService / getSimilarInsights
Function: getSimilarInsights()
getSimilarInsights(
queryEmbedding,tenantId,limit):Promise<any[]>
Defined in: services/vectorDbService.js:36
Retrieves similar insights from the database based on a query embedding.
Parameters
queryEmbedding
number[]
The embedding of the query text.
tenantId
string
The ID of the tenant to filter insights.
limit
number = 5
The maximum number of similar insights to retrieve.
Returns
Promise<any[]>
An array of similar insight records.