Share feedback, ideas and get community help

Updated 4 months ago

Does openai Assistant support using file_search

I want to support the use of file_search and specify file_id when calling openai Assistant. I have read all the development documents but cannot find the answer. Is there any plan to support this capability?
B
P
C
6 comments
What's file_search?
I want to upload a file when calling OpenAI Assistant, and pass the successfully uploaded file_id to the parameter. It can support the following request parameters, and can specify file_id and tools' file_search

curl https://api.openai.com/v1/threads \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"messages": [
{
"role": "user",
"content": "Create 3 data visualizations based on the trends in this file.",
"attachments": [
{
"file_id": "file-ACq8OjcLQm2eIG0BvRM4z5qX",
"tools": [{"type": "file_search"}]
}
]
}
]
}'
There is Vision support in theory:
I have the same question, but it is possible to define the file in the assistent OpenAI and then use this code to enable the filesearch tool in Typebot, but I don't know where it is possible to create this in the OpenAI Ask assistent block in TypeBot
{
"assistant_id":"asst_id"
"additional_instructions":NULL
"tool_choice":{
"type":"file_search"
}
}
Add a reply
Sign up and join the conversation on Discord