SeekTable AI Functions

This module activates the following AI-powered capabilities that aim to help end users utilize LLM intelligence in an unobtrusive, non-distracting way:

How to configure AI Functions

To enable "AI Functions" on your self-hosted SeekTable installation you need to let know SeekTable which LLM API/model to use:

  1. Ensure that you have an API key for OpenAI-compatible LLM API. This can be Google Gemini, OpenAI itself, Azure OpenAI etc. If you don't have this key yet: you may easily evaluate SeekTable AI functions with Gemini Free Tier:
    • open https://aistudio.google.com/ (login with your Google Account if needed)
    • click "Get API Key" in the top-menu (on the right side)
    • click "Create API Key" button
    • you should see your API key in the list + what plan it uses ("Free" if billing is not configured)
  2. Add to the 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:00
    
    The last two settings configure a local cache for LLM prompts to avoid excessive calls when the prompt hasn't changed.
  3. Additionally, you may specify another model (that is faster/cheaper) specially for "Ask Data" function. For example:
    SeekTable_ST__AIClient__AskDataModelId=gemini-2.0-flash-lite
  4. Don't forget to restart SeekTable containers (stop/up). After that "AI" menu should appear in the report builder.

Tune Ask Data

Context is essential for successful LLM intelligence. By default "Ask Data" context includes:

Tune Report/Dashboard Prompts

By default report/dashboard prompt's context includes:

Custom predefined report/dashboard prompts

If your on-prem SeekTable installation has activated "System/users admin" you can create your own prompts for "AI" menu:

AI Functions: configure custom prompts

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.