Skip to content

csernac0/llm-qa-over-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using LLM to Q&A Over Documents

Suppose you possess various text documents (such as PDFs, txt, code etc.) and want to ask questions questions about what's inside these docs. Since LLMs understand text tasks quite well we can use them as a solution for this purpose.

Prerequisites

  1. python 3.9
  2. OpenAI APIKey. Please generate a .env file with the key. This file must be saved at this level with the following structure.
    OPENAI_API_KEY=your_key   

Installation

After cloning this repo, please install requirements.

pip install -r requirements.txt

Usage

There are two ways to use the code, running the streamlit application

streamlit run app.py

Or there is a notebook index.ipynb

Knowledge

load_transform qa_over_docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published