Skip to content
/ qagpt Public

QAGPT is a question-answering application that uses a combination of document indexing and a large language model (LLM) like GPT to provide accurate and relevant answers to user questions. The system indexes a collection of documents in a vector database and leverages GPT to extract precise answers from the most relevant documents.

License

Notifications You must be signed in to change notification settings

0xAsten/qagpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QAGPT: Question Answering over Documents with GPT

QAGPT is a question-answering application that uses a combination of document indexing and a large language model (LLM) like GPT to provide accurate and relevant answers to user questions. The system indexes a collection of documents in a vector database and leverages GPT to extract precise answers from the most relevant documents.

Features

  • Indexing of documents in a vector database
  • Query engine to find the most relevant documents
  • Integration with GPT for answer extraction
  • User-friendly interface for inputting questions and viewing answers

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/QAGPT.git
  1. Navigate to the project directory:
cd QAGPT
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Index your documents:
python index_documents.py --input_dir /path/to/your/documents --file_type markdown --collection_name my_collection
  1. Run the application:
python app.py
  1. Open a web browser and navigate to http://localhost:5000 to access the user interface.

  2. Enter your question in the search bar and hit Enter or click the "Ask" button.

  3. The answer will be displayed along with the most relevant document(s).

Configuration

  • To change the LLM, edit the config.py file and update the LLM_MODEL variable.
  • To adjust the number of top documents returned by the query engine, update the NUM_TOP_DOCS variable in the config.py file

Contributing

We welcome contributions! Please read our CONTRIBUTING.md file to learn how you can contribute to the project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • OpenAI for providing the GPT models
  • Vector database libraries (e.g., Faiss, Annoy, Elasticsearch) for document indexing
  • Pre-trained word embeddings (e.g., Word2Vec, GloVe, FastText)

Note: Be sure to customize the repository URL, username, and other details in the README to match your project.

About

QAGPT is a question-answering application that uses a combination of document indexing and a large language model (LLM) like GPT to provide accurate and relevant answers to user questions. The system indexes a collection of documents in a vector database and leverages GPT to extract precise answers from the most relevant documents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published