langchain/docs
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
..
_static docs: Big Mendable Improvements (#4964) 2023-05-19 15:31:48 -07:00
additional_resources docs: Deployments page moved into Ecosystem/ (#4949) 2023-05-21 21:18:22 -07:00
ecosystem Harrison/modelscope (#5156) 2023-05-24 08:06:45 -07:00
getting_started fix a mistake in concepts.md (#5222) 2023-05-24 21:47:22 -07:00
integrations Beam (#4996) 2023-05-24 01:25:18 -07:00
modules Resolve error in StructuredOutputParser docs (#5240) 2023-05-25 07:47:25 -07:00
reference docs: compound ecosystem and integrations (#4870) 2023-05-18 09:29:57 -07:00
tracing Some notebook and client fixes (add retries, clean up docs, etc) (#4820) 2023-05-16 20:23:00 -07:00
use_cases Typos (#4851) 2023-05-17 11:52:22 -04:00
conf.py
dependents.md docs: added ecosystem/dependents page (#4941) 2023-05-18 13:11:08 -07:00
index.rst docs: Deployments page moved into Ecosystem/ (#4949) 2023-05-21 21:18:22 -07:00
integrations.rst docs: Deployments page moved into Ecosystem/ (#4949) 2023-05-21 21:18:22 -07:00
make.bat
Makefile
reference.rst docs: Deployments page moved into Ecosystem/ (#4949) 2023-05-21 21:18:22 -07:00
requirements.txt