poc-v1/sample.env
william.dias 80d1f9d26a feat: Enhance SQL optimization tools with internal knowledge base and observability features
- Updated README.md to include new setup instructions for RAG and observability.
- Added internal knowledge base (KB) setup for SQL optimization team, supporting various document types.
- Implemented token usage logging in LLM tools to track costs and usage.
- Refactored SQL analysis and optimization prompts for clarity and consistency.
- Introduced filtering of external tools based on environment configuration.
- Enhanced conservative analysis agent with structured prompt for performance suggestions.
- Updated requirements.txt to include new dependencies for RAG functionality.
- Added internal KB helpers for building and attaching knowledge to agents.
2026-01-23 13:02:17 -03:00

29 lines
794 B
Bash

# LLM provider (defina apenas o que usar)
# OPENAI_API_KEY=
# OPENAI_MODEL_ID=gpt-4o-mini
# GEMINI_API_KEY=
# GEMINI_MODEL_ID=gemini-2.5-pro
# GOOGLE_GENAI_USE_VERTEXAI=true
# GOOGLE_CLOUD_PROJECT=
# GOOGLE_CLOUD_LOCATION=us-central1
# GROQ_API_KEY=
# GROQ_MODEL_ID=llama-3.3-70b-versatile
# MISTRAL_API_KEY=
# MISTRAL_MODEL_ID=mistral-large-latest
# OLLAMA_MODEL_ID=llama3.2
# SQL Optimizer Team
SQL_OPT_TEAM_DB_FILE=tmp/sql_optimizer_team.db
SQL_OPT_TEAM_DEBUG_MODE=false
# Observabilidade de tokens/custos
LLM_LOG_USAGE=true
LLM_COST_INPUT_PER_1K=0
LLM_COST_OUTPUT_PER_1K=0
# RAG / KB interna
SQL_OPT_KB_PATH=kb
SQL_OPT_KB_CHROMA_PATH=tmp/kb_chroma
SQL_OPT_KB_DB_FILE=tmp/sql_optimizer_kb.db
SQL_OPT_KB_EMBEDDER_ID=sentence-transformers/all-MiniLM-L6-v2
SQL_OPT_BLOCK_EXTERNAL_TOOLS=true