How the sandboxed exploration approach works
mainInstead of hardcoding schema knowledge into prompts, the agent uses a sandboxed exploration approach. This allows the agent to adapt to any schema without redeployment or prompt changes.
The Workflow:
- Sandbox Creation: A Vercel Sandbox is created and populated with your semantic layer YAML files.
- Schema Exploration: The agent uses shell commands (like
cat,grep, andls) to browse the catalog and entity definitions dynamically. - Query Building: The agent constructs SQL queries based on the discovered schema.
- Execution: Queries are executed against a SQLite database.
- Reporting: Results are returned with a narrative explanation.