Giter VIP home page Giter VIP logo

experiments-with-rag's Introduction

Experiments with RAG

This repository contains a collection of small projects designed to explore the application of RAG (Retrieval-Augmented Generation) in real-world scenarios.

The primary objective is to acquire hands-on experience and develop a deeper understanding of how to effectively utilize RAG in tackling practical problems

Install the requirements using pip:

pip install -r requirements.txt

Chatter (chatter.py)

A simple question and answer application using LangChain framework and Chroma as the vector database.

The documents need to be in PDF format.

How to use

  • Put your PDF files in the pdfs folder.
  • Execute the script running the command python chatter.py.
  • Make questions about the document's context.

Run the command python chatter.py to start the application.

ChatterQA (chatter-qa.py)

Using QA LangChain module.

Works the same way as chatter.py, but using a different module.

Run the command python chatter-qa.py to start the application.

ChatterSQL (chatter-sql.py, chatter-sql-ex.py, chatter-sql-ex-1.py, chatter-llama-index-sql.py)

This is a example of how to use RAG to answer questions in a SQL database.

There are tow database in the db folder:

  • chinook.db: A SQLite database about music store.
  • movies.db: A SQLite database about movies store.

Run the command python chatter-sql.py to start the application.

Chatter LLama Index (chatter-llama-index.py)

A simples question and anwser application using LlamaIndex framework.

This application works the same way as chatter.py, but using a different framework keeping the chat history.

Run the command python chatter-llama-index.py to start the application.

References

experiments-with-rag's People

Contributors

johnidm 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.