ai
constai:object=AI
AI API
Type declaration
| Member | Type | Value | Description |
|---|---|---|---|
config | object | ... | Configuration sub-namespace for AI provider settings. |
get config.configured | boolean | - | - |
get config.current | AIConfig | - | - |
get config.indexEntities | boolean | - | - |
get config.proxyToken | string | - | - |
get config.proxyUrl | string | - | - |
searchEntities | Promise <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. |