Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
docs: fix some spelling mistakes caught by newest version of code spe…
Browse files Browse the repository at this point in the history
…ll (langchain-ai#22090)

Going to merge this even though it doesn't pass all tests, and open a
separate PR for the remaining spelling mistakes.
  • Loading branch information
eyurtsev authored May 23, 2024
1 parent 38783d0 commit 2d693c4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/docs/integrations/providers/langchain_decorators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <prompt:_role_> tag
- note the `:system` suffix inside the <prompt:_role_> tag
```<prompt:system>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion libs/community/langchain_community/vectorstores/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/core/tests/unit_tests/fake/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain/langchain/evaluation/scoring/prompt.py
Original file line number Diff line number Diff line change
@@ -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
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/anthropic/tests/unit_tests/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/openai/tests/unit_tests/fake/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d693c4

Please sign in to comment.