How to decide which tool is called for a uploaded PDF?

PDF is supported for both CODE INTERPRETER and RETRIEVAL. How to decide which tool to call when using API when a PDF is uploaded?

Sometimes, I upload a PDF to an assistant API and code interpreter is called to use python to analyze the file but I want the retrieval to be called to “Chat” with the PDF file.

Any pointers?

1 Like