The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs[patch] Fix some typos in merger_retriever.ipynb (#14502)
standby24x7d31ff30df65a
diff --git a/docs/docs/integrations/retrievers/merger_retriever.ipynb b/docs/docs/integrations/retrievers/merger_retriever.ipynbindex 8f56f74f04..1d2b9e3102 100644--- a/docs/docs/integrations/retrievers/merger_retriever.ipynb+++ b/docs/docs/integrations/retrievers/merger_retriever.ipynb@@ -41,7 +41,7 @@"ABS_PATH = os.path.dirname(os.path.abspath(__file__))\n","DB_DIR = os.path.join(ABS_PATH, \"db\")\n","\n",- "# Instantiate 2 diff cromadb indexs, each one with a diff embedding.\n",+ "# Instantiate 2 diff chromadb indexes, each one with a diff embedding.\n","client_settings = chromadb.config.Settings(\n"," is_persistent=True,\n"," persist_directory=DB_DIR,\n",@@ -68,7 +68,7 @@" search_type=\"mmr\", search_kwargs={\"k\": 5, \"include_metadata\": True}\n",")\n","\n",- "# The Lord of the Retrievers will hold the ouput of boths retrievers and can be used as any other\n",+ "# The Lord of the Retrievers will hold the output of both retrievers and can be used as any other\n","# retriever on different types of chains.\n","lotr = MergerRetriever(retrievers=[retriever_all, retriever_multi_qa])"]@@ -145,7 +145,7 @@"metadata": {},"source": ["## Re-order results to avoid performance degradation.\n",- "No matter the architecture of your model, there is a sustancial performance degradation when you include 10+ retrieved documents.\n",+ "No matter the architecture of your model, there is a substantial performance degradation when you include 10+ retrieved documents.\n","In brief: When models must access relevant information in the middle of long contexts, then tend to ignore the provided documents.\n","See: https://arxiv.org/abs//2307.03172"]@@ -157,7 +157,7 @@"metadata": {},"outputs": [],"source": [- "# You can use an additional document transformer to reorder documents after removing redundance.\n",+ "# You can use an additional document transformer to reorder documents after removing redundancy.\n","from langchain.document_transformers import LongContextReorder\n","\n","filter = EmbeddingsRedundantFilter(embeddings=filter_embeddings)\n",