From d31ff30df65a0b396d484914ad7f4e4980b81c5a Mon Sep 17 00:00:00 2001 From: standby24x7 Date: Wed, 13 Dec 2023 10:02:45 +0900 Subject: [PATCH] docs[patch] Fix some typos in merger_retriever.ipynb (#14502) This patch fixes some typos. Signed-off-by: Masanari Iida --- docs/docs/integrations/retrievers/merger_retriever.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/retrievers/merger_retriever.ipynb b/docs/docs/integrations/retrievers/merger_retriever.ipynb index 8f56f74f04f..1d2b9e3102b 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",