Giter Club home page Giter Club logo

ez-rag's Introduction

ez-rag: Easy Resource Querying

ez-rag is a project that simplifies the process of updating doucments to be used as sources for LLM queries. The primary use case I am exploring is creating a homework helper that leverages RAG with LLMs to answer questions based on the content of uploaded PDF or text files, such as textbooks. Feel free to tinker with it however you want.

This project is very much rudimentary and needs a lot of refactoring for actual usability.

Getting Started

To use ez-rag, follow these steps:

# Clone the repository
git clone https://github.com/smomara/ez-rag.git
# Enter the repository
cd ./ez-rag
# Create a .env file
touch .env
# Add your OpenAI API key
cat "OPENAI_API_KEY=your_openai_api_key > .env # replace with your actual OpenAI API key
# Create the data folder
mkdir data
# Run the application
python app.py

This will start the application, which will be accesible at http://localhost:5000

Usage

  1. Upload a document
  • Visit the locally hosted site and upload a PDF or text file of the textbook or document that you want to use as a source
  1. Ask questions
  • After uploading the document, submit question or prompts
  1. Explore results
  • Review the AI-generated responses and extract valuable information from the document

You can upload multiple files as source data. The source data will automatically be cleared when the you leave the site, but you can also clear the source data with the "Clear Data" button.

ez-rag's People

Contributors

smomara avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.