Find answers from the community

Updated 3 months ago

Pydantic program

Can you use OpenAIPydanticProgram with any index?
L
b
6 comments
Not really -- but planning on it

Concepts like "refining an object" seem a little strange -- I guess you'd have to dump it to a dict in the prompt?

As a small work around, you could run a pydantic program on the output of a query engine
interesting..........
No way to pass documents into it either? πŸ™‚
Maybe I could make a PR πŸ™‚
You could throw in document.text into one

Although you'd you'd probably want to throw the document through a node parser to ensure the size won't be an issue
Yea if you have an idea for it, go for it! πŸ’ͺ
Add a reply
Sign up and join the conversation on Discord