updates some spelling mistakes (#8537)

Just updating some spelling / grammar issues in the documentation. No
code changes.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
Danny Davenport 2023-07-31 20:15:29 -04:00 committed by GitHub
parent b4a126ae71
commit 8d2344db43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
"\n", "\n",
"To start, we will use the popular open source feature store framework [Feast](https://github.com/feast-dev/feast).\n", "To start, we will use the popular open source feature store framework [Feast](https://github.com/feast-dev/feast).\n",
"\n", "\n",
"This assumes you have already run the steps in the README around getting started. We will build of off that example in getting started, and create and LLMChain to write a note to a specific driver regarding their up-to-date statistics." "This assumes you have already run the steps in the README around getting started. We will build off of that example in getting started, and create and LLMChain to write a note to a specific driver regarding their up-to-date statistics."
] ]
}, },
{ {

View File

@ -17,7 +17,7 @@ class CommaSeparatedListOutputParser(BaseOutputParser):
return text.strip().split(", ") return text.strip().split(", ")
template = """You are a helpful assistant who generates comma separated lists. template = """You are a helpful assistant who generates comma separated lists.
A user will pass in a category, and you should generated 5 objects in that category in a comma separated list. A user will pass in a category, and you should generate 5 objects in that category in a comma separated list.
ONLY return a comma separated list, and nothing more.""" ONLY return a comma separated list, and nothing more."""
system_message_prompt = SystemMessagePromptTemplate.from_template(template) system_message_prompt = SystemMessagePromptTemplate.from_template(template)
human_template = "{text}" human_template = "{text}"

View File

@ -74,7 +74,7 @@ These chat messages differ from raw string (which you would pass into a [LLM](/d
For example, in OpenAI [Chat Completion API](https://platform.openai.com/docs/guides/chat/introduction), a chat message can be associated with the AI, human or system role. The model is supposed to follow instruction from system chat message more closely. For example, in OpenAI [Chat Completion API](https://platform.openai.com/docs/guides/chat/introduction), a chat message can be associated with the AI, human or system role. The model is supposed to follow instruction from system chat message more closely.
LangChain provides several prompt templates to make constructing and working with prompts easily. You are encouraged to use these chat related prompt templates instead of `PromptTemplate` when querying chat models to fully exploit the potential of underlying chat model. LangChain provides several prompt templates to make constructing and working with prompts easy. You are encouraged to use these chat related prompt templates instead of `PromptTemplate` when querying chat models to fully utilize the potential of the underlying chat model.