https://github.com/sharavak/chat-with-mongodb
A Streamlit application, where user can interact with MongoDB Bot and ask queries based on the schema given.
https://github.com/sharavak/chat-with-mongodb
groq langchain mongodb python streamlit
Last synced: about 2 months ago
JSON representation
A Streamlit application, where user can interact with MongoDB Bot and ask queries based on the schema given.
- Host: GitHub
- URL: https://github.com/sharavak/chat-with-mongodb
- Owner: sharavak
- Created: 2024-10-27T11:23:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T14:43:53.000Z (over 1 year ago)
- Last Synced: 2024-12-17T01:44:51.466Z (over 1 year ago)
- Topics: groq, langchain, mongodb, python, streamlit
- Language: Python
- Homepage: https://chat-with-db-101.streamlit.app/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🛢️ Chat with MongoDB — Natural Language MongoDB Querying via LLM + Streamlit
An **AI-powered chatbot interface** that allows users to interact with a MongoDB database using natural language. This app uses **LangChain** and **GROQ API** to convert user queries into executable **MongoDB queries**, and displays the results in a user-friendly **Streamlit** interface.
[Live Demo on Streamlit Cloud](https://chat-with-db-101.streamlit.app/)
---
## Features
- 💬 **Conversational Chat with an Agent** to interact with MongoDB like you're talking to a data assistant.
- 🧠 **LLM-powered Query Understanding** using [GROQ API](https://groq.com/).
- 🗃️ **MongoDB Query Execution** from natural language (via PyMongo).
- 📚 **Contextual Memory** using LangChain's message history.
- 🚀 **Streamlit UI** with chat, code rendering, and real-time responses.
---
## Tech Stack
| Tool | Purpose |
|-------------|--------------------------------------------|
| [Streamlit](https://streamlit.io/) | Web UI for chat and interactivity |
| [LangChain](https://www.langchain.com/) | Conversation memory, prompt management |
| [GROQ API](https://groq.com/) | LLM for MongoDB query generation |
| [MongoDB + PyMongo](https://www.mongodb.com/) | Query execution backend |
| Python | Core development language |
---
## Installation
```bash
git clone https://github.com/sharavak/Chat-with-MongoDB.git
cd Chat-with-MongoDB
pip install -r requirements.txt
streamlit run streamlit_main.py