How to make assistant read document before running a function? – API


Hi there I am using assistant with a function and retrieval.

How do I make it so that it reads the document that I attach into the thread and only then uses the function? At the moment it simply just generates random output and fills in the function. (The function is just structure for how I want the output to be) and the document is a multi-page document which I want it to basically summarize and rate.

I tried using the prompt and saying: after reading the document using the data run the function to return the data. No dice.



Source link

Leave a Comment