Giter Site home page Giter Site logo

easy-local-rag's Introduction

SuperEasy 100% Local RAG with Ollama + Email RAG

YouTube Tutorials

Latest YouTube Updated Features

IMAGE ALT TEXT HERE

Setup

  1. git clone https://github.com/AllAboutAI-YT/easy-local-rag.git
  2. cd dir
  3. pip install -r requirements.txt
  4. Install Ollama (https://ollama.com/download)
  5. ollama pull llama3 (etc)
  6. ollama pull mxbai-embed-large
  7. run upload.py (pdf, .txt, JSON)
  8. run localrag.py (with query re-write)
  9. run localrag_no_rewrite.py (no query re-write)

Email RAG Setup

  1. git clone https://github.com/AllAboutAI-YT/easy-local-rag.git
  2. cd dir
  3. pip install -r requirements.txt
  4. Install Ollama (https://ollama.com/download)
  5. ollama pull llama3 (etc)
  6. ollama pull mxbai-embed-large
  7. set YOUR email logins in .env (for gmail create app password (video))
  8. python collect_emails.py to download your emails
  9. python emailrag2.py to talk to your emails

Latest Updates

  • Added Email RAG Support (v1.3)
  • Upload.py (v1.2)
    • replaced /n/n with /n
  • New embeddings model mxbai-embed-large from ollama (1.2)
  • Rewrite query function to improve retrival on vauge questions (1.2)
  • Pick your model from the CLI (1.1)
    • python localrag.py --model mistral (llama3 is default)
  • Talk in a true loop with conversation history (1.1)

My YouTube Channel

https://www.youtube.com/c/AllAboutAI

What is RAG?

RAG is a way to enhance the capabilities of LLMs by combining their powerful language understanding with targeted retrieval of relevant information from external sources often with using embeddings in vector databases, leading to more accurate, trustworthy, and versatile AI-powered applications

What is Ollama?

Ollama is an open-source platform that simplifies the process of running powerful LLMs locally on your own machine, giving users more control and flexibility in their AI projects. https://www.ollama.com

easy-local-rag's People

Contributors

allaboutai-yt avatar danielthejoker18 avatar minervaargus 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.