From 2d693c484e60ba1d61178ff177f303577bdecb12 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 23 May 2024 16:59:11 -0400 Subject: [PATCH] docs: fix some spelling mistakes caught by newest version of code spell (#22090) Going to merge this even though it doesn't pass all tests, and open a separate PR for the remaining spelling mistakes. --- docs/docs/integrations/providers/langchain_decorators.mdx | 2 +- .../retrievers/google_cloud_documentai_warehouse.py | 2 +- libs/community/langchain_community/vectorstores/milvus.py | 2 +- .../tests/unit_tests/callbacks/fake_callback_handler.py | 2 +- libs/core/tests/unit_tests/fake/callbacks.py | 2 +- libs/langchain/langchain/evaluation/scoring/prompt.py | 2 +- .../tests/unit_tests/callbacks/fake_callback_handler.py | 2 +- libs/partners/anthropic/tests/unit_tests/_utils.py | 2 +- libs/partners/openai/tests/unit_tests/fake/callbacks.py | 2 +- libs/partners/prompty/tests/unit_tests/fake_callback_handler.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/docs/integrations/providers/langchain_decorators.mdx b/docs/docs/integrations/providers/langchain_decorators.mdx index 1c80bcc2bfb..d719f90b298 100644 --- a/docs/docs/integrations/providers/langchain_decorators.mdx +++ b/docs/docs/integrations/providers/langchain_decorators.mdx @@ -205,7 +205,7 @@ For chat models is very useful to define prompt as a set of message templates... def simulate_conversation(human_input:str, agent_role:str="a pirate"): """ ## System message - - note the `:system` sufix inside the tag + - note the `:system` suffix inside the tag ``` diff --git a/libs/community/langchain_community/retrievers/google_cloud_documentai_warehouse.py b/libs/community/langchain_community/retrievers/google_cloud_documentai_warehouse.py index e0a403b87e2..b989cef5b02 100644 --- a/libs/community/langchain_community/retrievers/google_cloud_documentai_warehouse.py +++ b/libs/community/langchain_community/retrievers/google_cloud_documentai_warehouse.py @@ -32,7 +32,7 @@ class GoogleDocumentAIWarehouseRetriever(BaseRetriever): Documents should be created and documents should be uploaded in a separate flow, and this retriever uses only Document AI - schema_id provided to search for revelant documents. + schema_id provided to search for relevant documents. More info: https://cloud.google.com/document-ai-warehouse. """ diff --git a/libs/community/langchain_community/vectorstores/milvus.py b/libs/community/langchain_community/vectorstores/milvus.py index 28d1dcc0f8e..30a7d4cc406 100644 --- a/libs/community/langchain_community/vectorstores/milvus.py +++ b/libs/community/langchain_community/vectorstores/milvus.py @@ -62,7 +62,7 @@ class Milvus(VectorStore): primary_field (str): Name of the primary key field. Defaults to "pk". text_field (str): Name of the text field. Defaults to "text". vector_field (str): Name of the vector field. Defaults to "vector". - metadata_field (str): Name of the metadta field. Defaults to None. + metadata_field (str): Name of the metadata field. Defaults to None. When metadata_field is specified, the document's metadata will store as json. diff --git a/libs/community/tests/unit_tests/callbacks/fake_callback_handler.py b/libs/community/tests/unit_tests/callbacks/fake_callback_handler.py index 66b5425692b..be164fdf234 100644 --- a/libs/community/tests/unit_tests/callbacks/fake_callback_handler.py +++ b/libs/community/tests/unit_tests/callbacks/fake_callback_handler.py @@ -21,7 +21,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests diff --git a/libs/core/tests/unit_tests/fake/callbacks.py b/libs/core/tests/unit_tests/fake/callbacks.py index b2bef343fff..db66f2acc9e 100644 --- a/libs/core/tests/unit_tests/fake/callbacks.py +++ b/libs/core/tests/unit_tests/fake/callbacks.py @@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests diff --git a/libs/langchain/langchain/evaluation/scoring/prompt.py b/libs/langchain/langchain/evaluation/scoring/prompt.py index 99f899824dc..259cded3969 100644 --- a/libs/langchain/langchain/evaluation/scoring/prompt.py +++ b/libs/langchain/langchain/evaluation/scoring/prompt.py @@ -1,6 +1,6 @@ """Prompts for scoring the outputs of a models for a given question. -This prompt is used to socre the responses and evaluate how it follows the instructions +This prompt is used to score the responses and evaluate how it follows the instructions and answers the question. The prompt is based on the paper from Zheng, et. al. https://arxiv.org/abs/2306.05685 """ diff --git a/libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py b/libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py index 2a2af92269f..4f92aa8bbe9 100644 --- a/libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py +++ b/libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py @@ -21,7 +21,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests diff --git a/libs/partners/anthropic/tests/unit_tests/_utils.py b/libs/partners/anthropic/tests/unit_tests/_utils.py index 3c053d2cc42..a39f31fc0f1 100644 --- a/libs/partners/anthropic/tests/unit_tests/_utils.py +++ b/libs/partners/anthropic/tests/unit_tests/_utils.py @@ -19,7 +19,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests diff --git a/libs/partners/openai/tests/unit_tests/fake/callbacks.py b/libs/partners/openai/tests/unit_tests/fake/callbacks.py index b2bef343fff..db66f2acc9e 100644 --- a/libs/partners/openai/tests/unit_tests/fake/callbacks.py +++ b/libs/partners/openai/tests/unit_tests/fake/callbacks.py @@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests diff --git a/libs/partners/prompty/tests/unit_tests/fake_callback_handler.py b/libs/partners/prompty/tests/unit_tests/fake_callback_handler.py index 86569fd0a31..fd68bebd2d9 100644 --- a/libs/partners/prompty/tests/unit_tests/fake_callback_handler.py +++ b/libs/partners/prompty/tests/unit_tests/fake_callback_handler.py @@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel): ignore_retriever_: bool = False ignore_chat_model_: bool = False - # to allow for similar callback handlers that are not technicall equal + # to allow for similar callback handlers that are not technically equal fake_id: Union[str, None] = None # add finer-grained counters for easier debugging of failing tests