/explore
|
You are here |
strathweb.com | ||
| | | | |
til.simonwillison.net
Here's the pattern I figured out for using the openai Python library to extract structured data from text using a single call to the model. |
|
| | | | | ||
| | | | |
isthisit.nz
August 2024 Update: Now a solved problem. Use Structured Outputs. Large language models (LLMs) return unstructured output. When we prompt them they respond with one large string. This is fine for applications such as ChatGPT, but in others where we want the LLM to return structured data such as lists or key value pairs, a parseable response is needed. In Building A ChatGPT-enhanced Python REPL I used a technique to prompt the LLM to return output in a text format I could parse. |
|
| | | | | ||
| | | | |
josephm.dev
Get the OpenAI API to return a JSON object. |
|
| | | | | ||
| | | | |
softwaredoug.com
Drop in any well-typed Python function; the loop builds the tool schema and wiring for you. How I build dumb demos and experiments. |
|
| | | |||