A Python-based AI agent designed to interact with MongoDB using natural language queries. This project leverages the Groq API and provides a user-friendly interface built with Streamlit. Simply input your query in natural language, and the agent will return the results in a chat format.
- Natural language query processing
- Chat format response
- Streamlit interface for easy interaction
- Integration with MongoDB via the Groq API
Follow these instructions to get a copy of the project up and running on your local machine.
- Python 3.8 or higher
- MongoDB
- Groq API access
- Clone the repository:
git clone https://github.com/sunilghanchi/MongoDB-AI-Agent.git
- Navigate to the project directory:
cd MongoDB-AI-Agent - Install the required packages:
pip install -r requirements.txt
-
Prepare your prompt template and sample queries:
prompt.txt: Template file for the AI agent promptssample.txt: File containing sample queries
-
Run the Streamlit application:
streamlit run main.py
-
Open the Streamlit interface in your browser:
http://localhost:8501 -
Enter your query in natural language and receive the results in chat format.
main.py: Main application file for running the Streamlit interfacerequirements.txt: List of dependencies required for the projectprompt.txt: Template file for the AI agent promptssample.txt: Sample query file
Contributions are welcome! Please fork the repository and create a pull request with your changes.