From 7f0e847c130b9b20be92947dbc1bf318384d2193 Mon Sep 17 00:00:00 2001 From: Kim Minjong Date: Fri, 11 Aug 2023 16:22:13 +0900 Subject: [PATCH] Update pydantic format instruction prompt (#9095) - remove unopened bracket --- libs/langchain/langchain/output_parsers/format_instructions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/output_parsers/format_instructions.py b/libs/langchain/langchain/output_parsers/format_instructions.py index 23c8328178..11b782a1b7 100644 --- a/libs/langchain/langchain/output_parsers/format_instructions.py +++ b/libs/langchain/langchain/output_parsers/format_instructions.py @@ -18,7 +18,7 @@ STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS = """ PYDANTIC_FORMAT_INSTRUCTIONS = """The output should be formatted as a JSON instance that conforms to the JSON schema below. -As an example, for the schema {{"properties": {{"foo": {{"title": "Foo", "description": "a list of strings", "type": "array", "items": {{"type": "string"}}}}}}, "required": ["foo"]}}}} +As an example, for the schema {{"properties": {{"foo": {{"title": "Foo", "description": "a list of strings", "type": "array", "items": {{"type": "string"}}}}}}, "required": ["foo"]}} the object {{"foo": ["bar", "baz"]}} is a well-formatted instance of the schema. The object {{"properties": {{"foo": ["bar", "baz"]}}}} is not well-formatted. Here is the output schema: