[ ABORT TO HUD ]
SEQ. 1
SEQ. 2

Tools: File Search & Code Interpreter

🤖 The Assistants API 20 min 450 BASE XP

Empowering Your Assistant

Assistants can be equipped with OpenAI-hosted tools that drastically expand their capabilities.

File Search (RAG as a Service)

You can upload up to 10,000 files to a Vector Store and attach it to an Assistant. When a user asks a question, the Assistant autonomously searches the vector store, retrieves relevant chunks, and cites its sources in the final answer.

Code Interpreter

Similar to Advanced Data Analysis in the ChatGPT UI, this tool allows your API Assistant to write and run Python code. It can process files uploaded to the Thread, generate CSVs, and create image plots, returning them as file IDs.

Function Calling

If you need the Assistant to interact with your own database or a third-party API, you define a Function. During a Run, the Assistant will halt and output a requires_action status, providing the JSON arguments for the function. Your code executes the function locally and submits the result back to the Run.

SYNAPSE VERIFICATION
QUERY 1 // 2
What is the maximum number of files you can attach to an Assistant's Vector Store for File Search?
100
500
10,000
Unlimited
Watch: 139x Rust Speedup
Tools: File Search & Code Interpreter | The Assistants API — OpenAI Academy