3 ms·
This is great for RAG, but Claude is generally hard to use for many cases due to lack of the built-in structured outputs. You can try forcing it to output JSON
by Destiner 2y ago
This is great for RAG, but Claude is generally hard to use for many cases due to lack of the built-in structured outputs.
You can try forcing it to output JSON, but that is not 100% reliable.
- maleldil 2y agoYou can get JSON output with a JSON schema via tool use [1]. Is this not reliable like (e.g.) OpenAI's structured outputs? [1] https://github.com/anthropics/anthropic-cookbook/blob/main/tool_use/extracting_structured_json.ipynb https://github.com/anthropics/anthropic-cookbook/blob/main/t...