Skip to content

Commit

Permalink
BasicRAG cookbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly committed Mar 25, 2024
1 parent 97c9a97 commit 682d708
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 184 deletions.
2 changes: 1 addition & 1 deletion projects/Basic-RAG/BasciRAG_CustomPrompt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from grag.components.prompt import Prompt
from grag.rag.basic_rag import BasicRAG
from grap.components.prompt import Prompt

custom_prompt = Prompt(
input_keys={"context", "question"},
Expand Down
87 changes: 0 additions & 87 deletions projects/Basic-RAG/BasicRAG-ingest_data.py

This file was deleted.

2 changes: 1 addition & 1 deletion projects/Basic-RAG/BasicRAG_FewShotPrompt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from grag.components.prompt import FewShotPrompt
from grag.rag.basic_rag import BasicRAG
from grap.components.prompt import FewShotPrompt

custom_few_shot_prompt = FewShotPrompt(
input_keys={"context", "question"},
Expand Down
6 changes: 5 additions & 1 deletion projects/Basic-RAG/BasicRAG_refine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from grag.grag.rag import BasicRAG
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)
rag = BasicRAG(doc_chain="refine")

if __name__ == "__main__":
Expand Down
42 changes: 0 additions & 42 deletions projects/Basic-RAG/BasicRAG_v1_depricated.py

This file was deleted.

52 changes: 0 additions & 52 deletions projects/Basic-RAG/BasicRAG_v2_depricated.py

This file was deleted.

0 comments on commit 682d708

Please sign in to comment.