Skip to content

rosewangrmi/document-qa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

document-qa

This is a little experiment with Langchain and Chroma to build a document question-answering system over a PDF file.

Architecture

The architecture behind this system is detailed in the following diagram

Setup

  1. Install Poetry

  2. Clone the repo

  3. Run: poetry install --with dev

  4. Create a .env file at the root of the project with your OpenAI key

OPENAI_API_KEY=<YOUR_API_KEY_GOES_HERE>

Demo

You can run the script with the following commands

poetry run python -m src.main --file_path /Users/ahmedbesbes/Downloads/Effective-Python.pdf \   
                              --question "What is the difference between str and bytes"

About

Experimenting with RMI in a box

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%