Skip to main content

ai

const ai: object = AI

AI API

Type declaration

MemberTypeValueDescription
configobject...Configuration sub-namespace for AI provider settings.
get config.configuredboolean--
get config.currentAIConfig--
get config.indexEntitiesboolean--
get config.proxyTokenstring--
get config.proxyUrlstring--
searchEntitiesPromise <Entity[]>-

Performs a semantic search over indexed Datagrok entities.

The input [text] is converted into a vector embedding using the configured embedding model and compared against stored entity embeddings using vector distance.

Results are filtered by the provided similarity [threshold], optionally restricted to specific entity [types], and limited by [limit].

Throws

Error if AI indexing is disabled or no AI provider is configured.

Source

grok.ts:32