An chatbot agent that can automatically perform CRUD operations using a custom made REST API via simple messaging.
Framework: LangChain
Web Interface: Streamlit
LLM: Mistral Small
REST API: Django REST and Swagger(for OpenAPI docs)
Clone the repository:
> git clone https://github.com/Armaan457/CRUD-Agent.git
Create and activate a virtual environment:
> python -m venv venv
> venv\scripts\activate
Install dependencies:
> pip install -r requirements.txt
Run the API server in the correct directory:
> cd foods
> python manage.py runserver
Run the app server:
> streamlit run app.py
For demonstration, I have made REST APIs for performing CRUD operations on a SQL db for a Django project foods
. In the tools.py
the neccessary tools are defined and the Agent lies in the app.py
file.