Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
llama_index/docs/examples/agent/openai_a...
llama_index/docs/examples/agent/openai_a...
Inactive
0
Follow
K
Kaveen
last year
Β·
With the example here:
https://github.com/run-llama/llama_index/blob/main/docs/examples/agent/openai_assistant_agent.ipynb
We load an openai assistant agent using a file such that we use the built-in retriever, but how do we add files after the agent is created?
L
K
16 comments
Share
Open in Discord
L
Logan M
last year
I think you can just do something like
uber_index.insert(document)
L
Logan M
last year
Since it's all in memory in pass-by-reference, it should work
K
Kaveen
last year
@Logan M wdym? We don't pass in an index when we're doing it natively through the openai assistant agent
K
Kaveen
last year
Attachment
K
Kaveen
last year
or at telast, that's what I see here?
L
Logan M
last year
ohhh that's the bult-in retrieval assistant (I was looking at the first section lol)
I have no idea in that case
L
Logan M
last year
I think you'd just have to re-build the agent with the added data
L
Logan M
last year
tbh from what i've seen though, OpenAIs retrieval doesn't work great when you add more files π
K
Kaveen
last year
oh wow really? So you mean that like, openai retrieval with an initial large set of documents works better than an initial smaller set that grows into a larger set?
K
Kaveen
last year
hmmm rebuilding the agent would lose us the context/memory tho right?
L
Logan M
last year
like, I mean it works fine for a small number of documents, much worse with larger. We are working on comaprissons to llama-index π
L
Logan M
last year
hmm, true true, unless it's using that threads thing to keep track of chat history? I haven't dove too deep into this specific API myself yet lol
K
Kaveen
last year
how are the initial comparisons looking like?
K
Kaveen
last year
worse somewhat?
K
Kaveen
last year
Ah yeah same here, not sure how upstream memory works will chime back in if I figure it out
L
Logan M
last year
yea worse somewhat, and no way to customize or improve it really π
Add a reply
Sign up and join the conversation on Discord
Join on Discord