API Assistant: Instructions for RAG to specific file

We are create a chatbot assistant for departments in our company. Each department has a unique file pdf. Can I prompt in the “Instruction” to ask RAG looking for exact PDF file of a department dynamically ?

There are several ways to implement this. If you know beforehand what department is starting the conversation you then add the file_id to the thread, so that file is only used in threads for specific departments. This might be the most efficient.

Another option is to send all the files and determine a mechanism for the assistant to know when to use a specific file. For example:

if a user mentions tax, use this file for the finance department: file-jdhsKjjx34kdkfks

2 Likes