LoreChat / app_copy.py
Stefan Ivchenko
Add RAG + UI (no env, no binary DB)
c0c6c45
raw
history blame contribute delete
232 Bytes
import subprocess
import sys, platform
from importlib import metadata as md
from rag_db import *
# Download your GGUF from HF Hub
db = init_vectorstore()
retriever = db.as_retriever(search_kwargs={"k": 1}) # how much to retrive