Question-Answering-Bot

MIT License

Stars
0
Committers
2

LangChain Question-Answering Bot

Overview

This project is a FastAPI-based Question-Answering (QA) bot that processes questions and documents to generate answers using LangChain.

Setup

1. Clone the Repository

git clone https://github.com/saurabh0413/Question-Answering-Bot.git
cd Question-Answering-Bot

2. Create a Virtual Environment and Install Dependencies

python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt

3. Set Up Environment Variables

Create a .env file in the root directory:
OPENAI_API_KEY="your_openai_api_key"

4. Run the Application

uvicorn app.main:app --reload

5. To test api

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. 

Final Notes:

  • 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!

Related Projects