The python code for this documentation just doesn’t work:
https://platform.openai.com/docs/assistants/tools/file-search
I had to change “file_search” to “retrieval”, and the second cell just doesn’t work at all. Get the following error about vector_stores:
AttributeError Traceback (most recent call last)
Cell In[208], line 2
1 # Create a vector store caled “Financial Statements”
----> 2 vector_store = client.beta.vector_stores.create(name=“policy Statements”)
4 # Ready the files for upload to OpenAI
5 file_paths = [r"C:\Users\squir\Downloads\baseline__statements.csv"]AttributeError: ‘Beta’ object has no attribute ‘vector_stores’