Skip to content

Commit f7de8bc

Browse files
committed
included doc URLS and alias for vectorstore
1 parent 3c57671 commit f7de8bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

clarifai_llm_retriever_example.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@
8585
"\n",
8686
"from langchain.text_splitter import CharacterTextSplitter\n",
8787
"from langchain.document_loaders import TextLoader\n",
88-
"from langchain.vectorstores import Clarifai \n",
88+
"from langchain.vectorstores import Clarifai as clarifaivectorstore\n",
8989
"\n",
9090
"loader = TextLoader(\"YOUR_TEXT_FILE_PATH\") #replace with your file path\n",
9191
"documents = loader.load()\n",
9292
"text_splitter = CharacterTextSplitter(chunk_size=1024, chunk_overlap=200)\n",
9393
"docs = text_splitter.split_documents(documents)\n",
9494
"\n",
95-
"clarifai_vector_db = Clarifai.from_documents(\n",
95+
"clarifai_vector_db = clarifaivectorstore.from_documents(\n",
9696
" user_id=USER_ID,\n",
9797
" app_id=APP_ID,\n",
9898
" documents=docs,\n",
@@ -190,7 +190,11 @@
190190
"cell_type": "markdown",
191191
"metadata": {},
192192
"source": [
193-
"### Example: Quick glimpse into how our retriever works when a query is passed to the dspy.Retrieve class"
193+
"### Example: Quick glimpse into how our retriever works when a query is passed to the dspy.Retrieve class\n",
194+
"\n",
195+
"Here we have used a guideline manual for procurement of works.\n",
196+
"\n",
197+
"link : https://doe.gov.in/sites/default/files/Manual%20for%20Procurement%20of%20Works_0.pdf"
194198
]
195199
},
196200
{

0 commit comments

Comments
 (0)