The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Clarification of the reference to the "get_text_legth" function in ge… (#5154)
Daniel Quinterosc111134a552e
diff --git a/docs/modules/prompts/prompt_templates/getting_started.md b/docs/modules/prompts/prompt_templates/getting_started.mdindex 695262422b..d7ad361ac4 100644--- a/docs/modules/prompts/prompt_templates/getting_started.md+++ b/docs/modules/prompts/prompt_templates/getting_started.md@@ -228,7 +228,11 @@ example_selector = LengthBasedExampleSelector(example_prompt=example_prompt,# This is the maximum length that the formatted examples should be.# Length is measured by the get_text_length function below.- max_length=25,+ max_length=25+ # This is the function used to get the length of a string, which is used+ # to determine which examples to include. It is commented out because+ # it is provided as a default value if none is specified.+ # get_text_length: Callable[[str], int] = lambda x: len(re.split("\n| ", x)))# We can now use the `example_selector` to create a `FewShotPromptTemplate`.