mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 08:33:49 +00:00
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.
This commit is contained in:
parent
38783d07c9
commit
2d693c484e
@ -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"):
|
def simulate_conversation(human_input:str, agent_role:str="a pirate"):
|
||||||
"""
|
"""
|
||||||
## System message
|
## System message
|
||||||
- note the `:system` sufix inside the <prompt:_role_> tag
|
- note the `:system` suffix inside the <prompt:_role_> tag
|
||||||
|
|
||||||
|
|
||||||
```<prompt:system>
|
```<prompt:system>
|
||||||
|
@ -32,7 +32,7 @@ class GoogleDocumentAIWarehouseRetriever(BaseRetriever):
|
|||||||
|
|
||||||
Documents should be created and documents should be uploaded
|
Documents should be created and documents should be uploaded
|
||||||
in a separate flow, and this retriever uses only Document AI
|
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.
|
More info: https://cloud.google.com/document-ai-warehouse.
|
||||||
"""
|
"""
|
||||||
|
@ -62,7 +62,7 @@ class Milvus(VectorStore):
|
|||||||
primary_field (str): Name of the primary key field. Defaults to "pk".
|
primary_field (str): Name of the primary key field. Defaults to "pk".
|
||||||
text_field (str): Name of the text field. Defaults to "text".
|
text_field (str): Name of the text field. Defaults to "text".
|
||||||
vector_field (str): Name of the vector field. Defaults to "vector".
|
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,
|
When metadata_field is specified,
|
||||||
the document's metadata will store as json.
|
the document's metadata will store as json.
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Prompts for scoring the outputs of a models for a given question.
|
"""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
|
and answers the question. The prompt is based on the paper from
|
||||||
Zheng, et. al. https://arxiv.org/abs/2306.05685
|
Zheng, et. al. https://arxiv.org/abs/2306.05685
|
||||||
"""
|
"""
|
||||||
|
@ -21,7 +21,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
@ -19,7 +19,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
@ -22,7 +22,7 @@ class BaseFakeCallbackHandler(BaseModel):
|
|||||||
ignore_retriever_: bool = False
|
ignore_retriever_: bool = False
|
||||||
ignore_chat_model_: 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
|
fake_id: Union[str, None] = None
|
||||||
|
|
||||||
# add finer-grained counters for easier debugging of failing tests
|
# add finer-grained counters for easier debugging of failing tests
|
||||||
|
Loading…
Reference in New Issue
Block a user