BitsGPT is a chatbot designed for the students of BPHC. It uses an agentic framework to provide accurate and reliable responses to a variety of queries related to campus life, academics, and placements. This rewrite improves modularity, accuracy, and performance.
- Query Classification: Automatically detects query intent (campus queries, course-related, PS/placement-related, etc.).
- Tool-Based Query Handling: Uses dedicated tools for data retrieval based on query intent.
- Reliable and Modular Design: Built with LangGraph and Langchain for agentic capabilities.
Follow these steps to set up BitsGPT locally:
- Python 3.11 or higher
- Poetry for dependency management
-
Clone the Repository:
git clone https://github.com/crux-bphc/bitsgpt-rewrite.git cd bitsgpt
-
Install Dependencies: Use Poetry to install all required packages.
poetry install
-
Activate the Poetry Shell: Start a Poetry-managed virtual environment.
poetry shell
-
Run the Application: Run langgraph dev to start the server. This will open langgraph studio in your browser.
langgraph dev
Create a .env
file in the project root with the following entries:
GROQ_API_KEY=...
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY=...
LANGCHAIN_PROJECT="bitsgpt-rewrite"
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASS=
POSTGRES_HOST=
POSTGRES_PORT=
Replace the keys with the appropriate values.
We welcome contributions to make BitsGPT better! Feel free to submit issues or pull requests.