Skip to content

Commit

Permalink
BasicRAG ingest cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly committed Mar 25, 2024
1 parent 682d708 commit ee884c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions projects/Basic-RAG/BasicRAG_ingest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from pathlib import Path

from grag.components.multivec_retriever import Retriever
from grag.components.vectordb.deeplake_client import DeepLakeClient

# from grag.rag.basic_rag import BasicRAG

client = DeepLakeClient(collection_name="test")
retriever = Retriever(vectordb=client)

dir_path = Path(__file__).parent / 'some_dir'

retriever.ingest(dir_path)
# rag = BasicRAG(doc_chain="refine")

0 comments on commit ee884c7

Please sign in to comment.