langchain/docs/modules/prompts
mwinterde 9c0cb90997
Resolve error in StructuredOutputParser docs (#5240)
# Resolve error in StructuredOutputParser docs

Documentation for `StructuredOutputParser` currently not reproducible,
that is, `output_parser.parse(output)` raises an error because the LLM
returns a response with an invalid format

```python
_input = prompt.format_prompt(question="what's the capital of france")
output = model(_input.to_string())

output

# ?
#
# ```json
# {
# 	"answer": "Paris",
# 	"source": "https://www.worldatlas.com/articles/what-is-the-capital-of-france.html"
# }
# ```
```

Was fixed by adding a question mark to the prompt
2023-05-25 07:47:25 -07:00
..
example_selectors/examples
output_parsers Resolve error in StructuredOutputParser docs (#5240) 2023-05-25 07:47:25 -07:00
prompt_templates Clarification of the reference to the "get_text_legth" function in ge… (#5154) 2023-05-23 20:43:38 -07:00
chat_prompt_template.ipynb Improve chat prompt template docs (#3719) 2023-04-28 20:16:22 -07:00
example_selectors.rst
getting_started.ipynb Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
output_parsers.rst
prompt_templates.rst