DSPy: The framework for programming—not prompting—language models
Python
included doc URLS and alias for vectorstore
Mogith PNf7de8bcbd1cb
diff --git a/clarifai_llm_retriever_example.ipynb b/clarifai_llm_retriever_example.ipynbindex 0eb899e89..12b6bb8f4 100644--- a/clarifai_llm_retriever_example.ipynb+++ b/clarifai_llm_retriever_example.ipynb@@ -85,14 +85,14 @@"\n","from langchain.text_splitter import CharacterTextSplitter\n","from langchain.document_loaders import TextLoader\n",- "from langchain.vectorstores import Clarifai \n",+ "from langchain.vectorstores import Clarifai as clarifaivectorstore\n","\n","loader = TextLoader(\"YOUR_TEXT_FILE_PATH\") #replace with your file path\n","documents = loader.load()\n","text_splitter = CharacterTextSplitter(chunk_size=1024, chunk_overlap=200)\n","docs = text_splitter.split_documents(documents)\n","\n",- "clarifai_vector_db = Clarifai.from_documents(\n",+ "clarifai_vector_db = clarifaivectorstore.from_documents(\n"," user_id=USER_ID,\n"," app_id=APP_ID,\n"," documents=docs,\n",@@ -190,7 +190,11 @@"cell_type": "markdown","metadata": {},"source": [- "### Example: Quick glimpse into how our retriever works when a query is passed to the dspy.Retrieve class"+ "### Example: Quick glimpse into how our retriever works when a query is passed to the dspy.Retrieve class\n",+ "\n",+ "Here we have used a guideline manual for procurement of works.\n",+ "\n",+ "link : https://doe.gov.in/sites/default/files/Manual%20for%20Procurement%20of%20Works_0.pdf"]},{