Skip to content

saurabh0413/Question-Answering-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages