This project is a FastAPI-based Question-Answering (QA) bot that processes questions and documents to generate answers using LangChain.
git clone https://github.com/saurabh0413/Question-Answering-Bot.git
cd Question-Answering-Bot
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt
Create a .env file in the root directory:
OPENAI_API_KEY="your_openai_api_key"
uvicorn app.main:app --reload
1. server will be running at -> http://127.0.0.1:8000/docs
2. Upload your questions and document file
3. Click on execute to get answers in response.
- Replace
your_openai_api_key
with your actual API key. - Ensure all dependencies and setup steps are followed for a smooth experience.
Let me know if you have any questions or need further assistance!