A Retrieval-Augmented Generation (RAG) based chatbot that answers company-related queries using information stored in company.txt. The chatbot is optimized to run with a single local language model, providing a simpler and more reliable experience.
- Company-specific question answering
- Uses a single local language model
- Optimized for faster loading and lower resource usage
- Supports local model configuration through
.env - Improved model compatibility for tool calling
- Validated with multiple test cases for consistent responses
git clone https://github.com/AgentRoomAI/chat-agent.git
cd chat-agentpython -m venv venvWindows
venv\Scripts\activateLinux/macOS
source venv/bin/activatepip install -r requirements.txtThe application is configured to use a single default local model for improved performance and simplified model management.
python download_models.pyIf you want to use a different locally downloaded model, set LOCAL_MODEL_PATH in a .env file to the model directory path before running the application.
Start the chatbot using:
python chatbot.py- Add company information to
company.txt. - Run the chatbot.
- Ask questions related to the company.
- The chatbot answers using the information available in the company document and the configured local model.
- Refactored the chatbot to use a single local language model instead of loading multiple models.
- Integrated a model that is better suited for tool calling.
- Simplified the model loading process for improved efficiency.
- Validated the chatbot with multiple test cases to ensure stable and reliable responses.
If information is not available in company.txt, the chatbot will return:
Sorry, I don't have that information.
Aman V