This repository contains demo applications showcasing SkySQL technologies and integrations with modern GenAI frameworks.
A collection of examples demonstrating how to use SkySQL DB agents as tools within popular GenAI frameworks such as LangChain, LlamaIndex, and CrewAI.
- Interact with SkySQL-powered database agents via web or CLI
- Generate and view SQL queries for your questions
- Integrate with OpenAI LLMs for natural language understanding
- List available DB agents and chat with them
- Works with multiple GenAI frameworks
- Clone the repository:
git clone [email protected]:skysqlinc/skysql-demos.git cd skysql-demos/chat-with-db-agents
- (Recommended) Create and activate a Python virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set Up Environment Variables
- You need both the SkySQL API Key and the OpenAI API key
Add these to a .env
file or set it.
export OPENAI_API_KEY = "sk-Upwxj2mlvm......"
export SKYSQL_API_KEY = "skysql.1zzz......"
Follow detailed instructions, troubleshooting, and feature descriptions, see chat-with-db-agents/README.md
.