This module activates the following AI-powered capabilities that aim to help end users utilize LLM intelligence in an unobtrusive, non-distracting way:
To enable "AI Functions" on your self-hosted SeekTable installation you need to let know SeekTable which LLM API/model to use:
docker-compose.seektable.env
file (assuming that you use Gemini - if not, use endpoint/model from your LLM API documentation):
SeekTable_ST__AIClient__Type=openai SeekTable_ST__AIClient__Endpoint=https://generativelanguage.googleapis.com/v1beta/openai/ SeekTable_ST__AIClient__DefaultModelId=gemini-2.5-flash SeekTable_ST__AIClient__ApiKey=YOUR_API_KEY SeekTable_ST__AIClient__PromptCacheSqliteFile=@BasePath/App_Data/cache_prompts.sqlite SeekTable_ST__AIClient__PromptCacheAbsoluteExpiration=24:00:00The last two settings configure a local cache for LLM prompts to avoid excessive calls when the prompt hasn't changed.
SeekTable_ST__AIClient__AskDataModelId=gemini-2.0-flash-lite
stop
/up
). After that "AI" menu should appear in the report builder.Context is essential for successful LLM intelligence. By default "Ask Data" context includes:
<prompt>
, for example:
<prompt>For "Ask Data" user query: when user wants "revenue" use "Sum of Amount" measure</prompt>This content is hidden from end-users.
By default report/dashboard prompt's context includes:
<table>
(group are repeated to avoid colspan/rowspan, for better recognition of columns x rows intersections), for flat tables this is CSV export data (to minimize tokens usage in case of thouthands of rows).
In dashboard prompts, all report widgets (charts, custom visuals, pivot/flat tables) are included as HTML <table>
.
<prompt>
instructions may affect report prompts too).<prompt>
instructions,
to guide LLM exactly for this concrete report configuration. For example:
<prompt>In this table all non-total values below 100 indicate bad performance.</prompt>
If your on-prem SeekTable installation has activated "System/users admin" you can create your own prompts for "AI" menu:
Match Condition determines reports applicable for this prompt: report type, dimensions/measures of the report, a concrete report ID etc. You can combine conditions as needed using AND or OR. This allows for report-specific prompts that are applicable only to the relevant data.