Using output schema #201
-
Hello!
Is there some information of this method except the described examples? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you share an example of your prompt and output schema?
This is pretty much how things work under the covers. But there are some tricks you can use if that's not enough, depending on what the schema looks like. |
Beta Was this translation helpful? Give feedback.
Here's an example from the Firebase docs: https://firebase.google.com/docs/genkit#2_structured_output. Sometimes, for example, adding descriptions to the various fields can be helpful to the model. Alternatively, if you are using Dotprompt you can look at: https://firebase.google.com/docs/genkit/dotprompt#defining_inputoutput_schemas_with_picoschema.
The more you can provide (even if you need to obfuscate it), schema, trace, etc the more specific an answer we can give.