From 9235dade90f57e10de7856f22e69c98dd3af883e Mon Sep 17 00:00:00 2001 From: Anubhav Madhav Date: Sun, 17 Mar 2024 07:07:42 +0530 Subject: [PATCH] docs: provided hyperlinks to text and fixed grammar (#19092) 1) Provided links to text in the prompt (Refer Page Link 1, Page Link 2 and Page Link 3) 2) Fixed Grammar in Considerations of Model I/O Concepts documentation page - Update concepts.mdx (Page Link 4) *Issues are on the following pages:* Page Link 1: https://python.langchain.com/docs/modules/model_io/concepts#prompttemplate Page Link 2: https://python.langchain.com/docs/modules/model_io/concepts#messageprompttemplate Page Link 3: https://python.langchain.com/docs/modules/model_io/concepts#chatprompttemplate Page Link 4: https://python.langchain.com/docs/modules/model_io/concepts#considerations **Fix 1**: Description: Fixed Grammar in Considerations of Model I/O Documentation Page Issue: "to work well with the model are you using" # "to work well with the model you are using" Dependencies: None Twitter handle: @Anubhav_Madhav (https://twitter.com/Anubhav_Madhav) **Fix 2**: Description: Provided links to text in the prompt (Refer Page Link 1, Page Link 2 and Page Link 3) Issue: links not provided # links have been provided to the text Dependencies: None Twitter handle: @Anubhav_Madhav (https://twitter.com/Anubhav_Madhav) baskaryan, efriis, eyurtsev, hwchase17. *For Fix 1* Refer to the first word 'This" word in the image attached with this PR. PFA Screenshot 2024-03-15 at 3 04 17 AM If no one reviews your PR within a few days, please @-mention one of --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> --- docs/docs/modules/model_io/concepts.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/modules/model_io/concepts.mdx b/docs/docs/modules/model_io/concepts.mdx index 66ed70a0aa4..4189b994293 100644 --- a/docs/docs/modules/model_io/concepts.mdx +++ b/docs/docs/modules/model_io/concepts.mdx @@ -68,11 +68,11 @@ ChatModels and LLMs take different input types. PromptValue is a class designed ### PromptTemplate -This is an example of a prompt template. This consists of a template string. This string is then formatted with user inputs to produce a final string. +[This](/docs/modules/model_io/prompts/quick_start#prompttemplate) is an example of a prompt template. This consists of a template string. This string is then formatted with user inputs to produce a final string. ### MessagePromptTemplate -This is an example of a prompt template. This consists of a template **message** - meaning a specific role and a PromptTemplate. This PromptTemplate is then formatted with user inputs to produce a final string that becomes the `content` of this message. +[This](/docs/modules/model_io/prompts/message_prompts) is an example of a prompt template. This consists of a template **message** - meaning a specific role and a PromptTemplate. This PromptTemplate is then formatted with user inputs to produce a final string that becomes the `content` of this message. #### HumanMessagePromptTemplate @@ -92,7 +92,7 @@ Oftentimes inputs to prompts can be a list of messages. This is when you would u ### ChatPromptTemplate -This is an example of a prompt template. This consists of a list of MessagePromptTemplates or MessagePlaceholders. These are then formatted with user inputs to produce a final list of messages. +[This](/docs/modules/model_io/prompts/quick_start#chatprompttemplate) is an example of a prompt template. This consists of a list of MessagePromptTemplates or MessagePlaceholders. These are then formatted with user inputs to produce a final list of messages. ## Output Parsers