Code Monkey home page Code Monkey logo

rag-project-cs-579's Introduction

RAG-Project-CS-579

A repository for a RAG model project in CS 579 at ISU

Milestone 1: March 20

We used llamaIndex as the process pipeline and pinecone as vector storage.

We have a <data_lovecraft> folder which contains a collection of pdf files of H.P. Lovecraft's work that will be loaded into the vector storage.

The text chunk size is set to <512>

The embedding model is set to <bge-small-en-v1.5>

To Use: after adding a valid PineCone API key to the source code, call python load.py <your/path/filename.pdf> --index "index_name" to perform a commandline file upload.

85475e97-cce2-422e-a140-4fb5b72c525f.mp4

Milestone 2: April 19

We used Ollama's llama2 model as the llm backbone that handles the answering.

We used VectorIndexRetriever to retrive top-k similar chunk that's relevent to the query and generated the answer using RetrieverQueryEngine based on the retrived information.

To Use: after adding a valid PineCone API key to the source code, call python query.py --query "What do you want to know?" --index "index_name" to perform an answering generation based on the files contained in the pinecone vector store index.

Additionally, the user will need to either be running a local instance of Ollama with a llama2 model loaded, or otherwise take steps to modify the LLM used by the llama_index library for our query engine to run.

Answer.User.Query.Demo.mp4

Milestone 3: May 7th

We used funix from https://github.com/TexteaInc/funix as the ui library for this project. To test, you have to intsall Ollama locally and install funix via pip.

UI_compressed.mp4

rag-project-cs-579's People

Contributors

xiaoquan006zhao avatar jacobfrieden avatar

Watchers

 avatar

Forkers

eladlevyy

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.