Repository navigation
Replies: 1 comment
|
I'm going to work on something similar myself. I don't have any code, but from my research, it seems like you also need to create a custom optimizer as well. You shouldn't need to do anything fancy; rather, you just need to use an existing optimizer for the prompt. ChatGPT gave me this, though I'm not sure it will work: Got it! Here’s the complete code, starting from the 1.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Pardon me for I'm a noobie in the AI space. So I made a custom model for processing multimodal queries. However, I now want to optimize the program that uses the custom model such that for a given image, I can make it output a specific set of answers.
If I use an optimizer like MIPROv2 using a dataset that includes the base64 image string, the few shot examples (the compiled progam) will also have the base64 image string in the prompt, and this is useless. How should I go about associating an image with each example, for the LLM to have context for what input images were the set of example outputs generated?
Custom DSPy multimodal model for processing multimodal tasks
This is the signature that I use with the program:
And this is how I use the signature with the DSPy program meant to process multimodal queries:
All reactions