You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mateobelanger
changed the title
bug: VectorStoreIndex top_n function returns all vectors
bug: VectorStoreIndex top_n function returns embed data
Nov 19, 2024
top_n
function returnsVec<(f64, String, T)>
whereT
is converted to aserde_json::Value
by theVectorStoreIndexDyn
.This becomes a problem because there is no point where the embedding vectors are filtered out of the vector search response.
Then, the agent takes as input this dynamic context and passes all the vectors as part of the context to the provider.
This makes the context window huge = more expensive and way slower.
The text was updated successfully, but these errors were encountered: