An open API service indexing awesome lists of open source software.

https://github.com/0xzee/streamlit_txt2sql_agent

Streamlit "Text-to-SQL" Agentic Chatbot App powered by Lang-Graph
https://github.com/0xzee/streamlit_txt2sql_agent

groq langchain langgraph llama3-2 memory-management mixtral-8x7b-instruct session-management sessionstorage sql sqlite3 streamlit

Last synced: over 1 year ago
JSON representation

Streamlit "Text-to-SQL" Agentic Chatbot App powered by Lang-Graph

Awesome Lists containing this project

README

          

# 🤖 Chat with Databases
## 🤖 `Text to SQL` Agentic langgraph chatbot
Streamlit `Text to SQL` Agentic ChatBot app built with `langgraph workflow` :
- Workflow : `LangGraph` Workflow with text-to-query, sqlite, and memory & session management
- Inference & LLM : `Groq Inference`, Model : `llama3.2 3b`

## Interface :
![ChatBot App](t2s.jpg)

# Steps :
- Put `GROQ_API_KEY` in `.streamlit/secrets.toml`
- Put your csv file in `/data` folder
- Use script `/utils/csv_to_sqlite.py` to create `sqlite` databases
- Run the App :
```python
pip install -r requirements.txt
streamlit run main.py
```

# 📊 LangGraph WorkFlow
LangGraph Work-Flow

![Workflow](wf.png)

# ⌨ APP DOCKERFILE :
To build the App from Dockerfile

```bash
docker build -t chatbot-app .
docker run -p 8501:8501 \
-e GROQ_API_KEY=your_groq_api_key \
chatbot-app
```