Skip to content

Talks to rem with LLM. Using RAGchain for RAG process. Search your record, talk to LLM.

License

Notifications You must be signed in to change notification settings

vkehfdl1/rem-RAGchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rem-RAGchain

Integrates RAGchain and rem.

rem is fascinating project, but don't have RAG feature yet. And of course, RAG with rem will be wonderful. As RAGchain maker, I really want to use rem with RAG feature. So I quickly made this repo.

I just did a little experiment, and it works. However, answer quality is not good enough. I'll have to get more data from rem and do experiment more pipeline.

Install

  1. Install rem. Only available on apple silicon.
  2. Install requirements. pip install -r requirements.txt
  3. set .env file. There is a template file .env.template. You can use Dynamo Linker instead of Redis DB. Json Linker at RAGchain v0.2.4 is not stable, so it will not work properly.

Usage

Ingest rem data

You can ingest rem data with minute range. It ingests data past from minute range setting that you set.

    python3 ingest.py --db_path="<your/path/to/db.sqlite3>" --ingest_minutes=10

It will ingest past 10 minutes of rem data. It will be great you set this to crontab.

Run RAGchain

You can talk about your rem record with RAGchain.

    python3 run_llm.py --query="<your query>"

About

Talks to rem with LLM. Using RAGchain for RAG process. Search your record, talk to LLM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages