Skip to content

domainio/llm-byod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 LLM Bring Your Own Data

QA Chat with your PDF using LangChain, Faiss, Streamlit and ChatGPT API

PDF sample data

🤔 Ask questions and 🤖 get concise answers based on your own data context

Setup Guide

  1. Clone repo

     git clone https://github.com/domainio/llm-byod.git
     cd llm-byod
    
  2. Create a Python virtual env

    python -m venv .venv
    source .venv/bin/activate
    
  3. Install the required dependencies

    pip install -r requirements.txt
    
  4. Create an OpenAI API key and put it in the .env file as OPENAI_API_KEY=<your API key>

  5. Run the app

    streamlit run main.py
    

Important

You must have an active OpenAI API key which may involve costs. For instance:

Next steps

  1. Enhance the prompts engineering for better accurate QA.
  2. Add a history element to the chat with LLM.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages