From a2a0715bd43b88c5fff6dc6d0d5e4c35d4252294 Mon Sep 17 00:00:00 2001 From: "Andrey E. Vedishchev" Date: Wed, 21 Jun 2023 18:53:31 +0200 Subject: [PATCH] Minor Grammar Fixes in Docs and Comments (#6536) Just some grammar fixes: I found "retriver" instead of "retriever" in several comments across the documentation and in the comments. I fixed it. Co-authored-by: andrey.vedishchev Co-authored-by: Dev 2049 --- .../data_connection/document_loaders/integrations/iugu.ipynb | 2 +- .../document_loaders/integrations/modern_treasury.ipynb | 4 +++- .../document_loaders/integrations/spreedly.ipynb | 4 +++- .../document_loaders/integrations/stripe.ipynb | 4 +++- langchain/retrievers/elastic_search_bm25.py | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/extras/modules/data_connection/document_loaders/integrations/iugu.ipynb b/docs/extras/modules/data_connection/document_loaders/integrations/iugu.ipynb index 3fef7fbb..8c7ece33 100644 --- a/docs/extras/modules/data_connection/document_loaders/integrations/iugu.ipynb +++ b/docs/extras/modules/data_connection/document_loaders/integrations/iugu.ipynb @@ -54,7 +54,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Create a vectorstore retriver from the loader\n", + "# Create a vectorstore retriever from the loader\n", "# see https://python.langchain.com/en/latest/modules/data_connection/getting_started.html for more details\n", "\n", "index = VectorstoreIndexCreator().from_loaders([iugu_loader])\n", diff --git a/docs/extras/modules/data_connection/document_loaders/integrations/modern_treasury.ipynb b/docs/extras/modules/data_connection/document_loaders/integrations/modern_treasury.ipynb index 425cde73..a10ded52 100644 --- a/docs/extras/modules/data_connection/document_loaders/integrations/modern_treasury.ipynb +++ b/docs/extras/modules/data_connection/document_loaders/integrations/modern_treasury.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -28,6 +29,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -79,7 +81,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Create a vectorstore retriver from the loader\n", + "# Create a vectorstore retriever from the loader\n", "# see https://python.langchain.com/en/latest/modules/data_connection/getting_started.html for more details\n", "\n", "index = VectorstoreIndexCreator().from_loaders([modern_treasury_loader])\n", diff --git a/docs/extras/modules/data_connection/document_loaders/integrations/spreedly.ipynb b/docs/extras/modules/data_connection/document_loaders/integrations/spreedly.ipynb index 69ec6f36..602d839a 100644 --- a/docs/extras/modules/data_connection/document_loaders/integrations/spreedly.ipynb +++ b/docs/extras/modules/data_connection/document_loaders/integrations/spreedly.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -26,6 +27,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -69,7 +71,7 @@ } ], "source": [ - "# Create a vectorstore retriver from the loader\n", + "# Create a vectorstore retriever from the loader\n", "# see https://python.langchain.com/en/latest/modules/data_connection/getting_started.html for more details\n", "\n", "index = VectorstoreIndexCreator().from_loaders([spreedly_loader])\n", diff --git a/docs/extras/modules/data_connection/document_loaders/integrations/stripe.ipynb b/docs/extras/modules/data_connection/document_loaders/integrations/stripe.ipynb index d8508a84..0188dd90 100644 --- a/docs/extras/modules/data_connection/document_loaders/integrations/stripe.ipynb +++ b/docs/extras/modules/data_connection/document_loaders/integrations/stripe.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -25,6 +26,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -62,7 +64,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Create a vectorstore retriver from the loader\n", + "# Create a vectorstore retriever from the loader\n", "# see https://python.langchain.com/en/latest/modules/data_connection/getting_started.html for more details\n", "\n", "index = VectorstoreIndexCreator().from_loaders([stripe_loader])\n", diff --git a/langchain/retrievers/elastic_search_bm25.py b/langchain/retrievers/elastic_search_bm25.py index 7e319d73..3fe61aa5 100644 --- a/langchain/retrievers/elastic_search_bm25.py +++ b/langchain/retrievers/elastic_search_bm25.py @@ -77,7 +77,7 @@ class ElasticSearchBM25Retriever(BaseRetriever): texts: Iterable[str], refresh_indices: bool = True, ) -> List[str]: - """Run more texts through the embeddings and add to the retriver. + """Run more texts through the embeddings and add to the retriever. Args: texts: Iterable of strings to add to the retriever.