- 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. |
||
|---|---|---|
| .. | ||
| README.md | ||
Base de Conhecimento Interna (KB)
Coloque aqui documentos internos que devem ser usados no RAG.
Suportado (por padrão):
- Markdown (.md)
- Texto (.txt)
- SQL (.sql)
- PDF (.pdf)
Configurações via ambiente:
- SQL_OPT_KB_PATH (padrão: kb)
- SQL_OPT_KB_CHROMA_PATH (padrão: tmp/kb_chroma)
- SQL_OPT_KB_EMBEDDER_ID (padrão: sentence-transformers/all-MiniLM-L6-v2)
- SQL_OPT_KB_DB_FILE (padrão: tmp/sql_optimizer_kb.db)
- SQL_OPT_BLOCK_EXTERNAL_TOOLS (padrão: true)