OpenAI File Search Configuration
Budget: $10 – $30 USD
I need assistance with configuring OpenAI's new file search functionality to effectively search and extract specific content from my text files in a PYTHON app.
Ideal skills and experience include:
- Proficiency in working with OpenAI's API
- Experience with configuring file search functionalities
- Strong understanding of .txt file content extraction
I have this code
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4o-mini",
input="What is deep research by OpenAI?",
tools=[{
"type": "file_search",
"vector_store_ids": ["<vector_store_id>"]
}]
)
print(response)
I have a vector store with a txt file. OpenAI's web_search_preview works but when I switch the tool to file_search the it gives an
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
OpenAI API keys works fine because if it didn't the web search preview would not work. My app is in a Flask app and I have sample code set up in a GET command.
I need someone who has done this. I have followed youtube video and have read the documentation.
I have installed the latest version of OpenAI and I'm using Python 3.11
If you have done this before say in you proposal I HAVE DONE THIS.
I need guidance more than code,
I have a Vector Store ID and I have a txt file in it. That should be enouth for a knowledge base- yes?
Ideal skills and experience include:
- Proficiency in working with OpenAI's API
- Experience with configuring file search functionalities
- Strong understanding of .txt file content extraction
I have this code
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4o-mini",
input="What is deep research by OpenAI?",
tools=[{
"type": "file_search",
"vector_store_ids": ["<vector_store_id>"]
}]
)
print(response)
I have a vector store with a txt file. OpenAI's web_search_preview works but when I switch the tool to file_search the it gives an
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
OpenAI API keys works fine because if it didn't the web search preview would not work. My app is in a Flask app and I have sample code set up in a GET command.
I need someone who has done this. I have followed youtube video and have read the documentation.
I have installed the latest version of OpenAI and I'm using Python 3.11
If you have done this before say in you proposal I HAVE DONE THIS.
I need guidance more than code,
I have a Vector Store ID and I have a txt file in it. That should be enouth for a knowledge base- yes?