SimpleDirectoryReader
or the Documentation needs to be updated..ppt
but the .pptx
's are just fine.agent = OpenAIAssistantAgent.from_new( name="Math Tutor", instructions="You are a personal math tutor. Write and run code to answer math questions.", openai_tools=[{"type": "code_interpreter"}], instructions_prefix="Please address the user as Jane Doe. The user has a premium account.", )
Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/trike/api/env/lib/python3.11/site-packages/llama_index/agent/openai/openai_assistant_agent.py", line 230, in from_new assistant = client.beta.assistants.create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Assistants.create() got an unexpected keyword argument 'file_ids'
llama-hub==0.0.79.post1 llama-index==0.10.5 llama-index-agent-openai==0.1.1 llama-index-core==0.10.5 llama-index-embeddings-openai==0.1.1 llama-index-legacy==0.9.48 llama-index-llms-openai==0.1.1 llama-index-multi-modal-llms-openai==0.1.1 llama-index-program-openai==0.1.1 llama-index-question-gen-openai==0.1.1 llama-index-readers-file==0.1.3 llama-index-readers-web==0.1.3 openai==1.33.0
filters = [ ("source", "file"), ("source", "url"), ("source", "twitter"), ]
from llama_index.core.vector_stores import MetadataFilters, MetadataFilter, FilterCondition filters = MetadataFilters( filters=[ MetadataFilter(key="source", value="file"), MetadataFilter(key="source", value="url"), MetadataFilter(key="source", value="twitter"), ], condition=FilterCondition.OR, ) retriever = index.as_retriever(filters=filters) retriever.retrieve("Your query here")