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 9 months ago
0
Follow
VectorIndexRetriever vs load_index_from_storage
VectorIndexRetriever vs load_index_from_storage
Inactive
0
Follow
y
yun.llllllama
9 months ago
Β·
I have a persisted index, and loaded using
load_index_from_storage
. but when I wish to use it in the VectorIndexRetriever, it gives a warning: "expected type vector store index, given base Index"..
Attachment
y
L
3 comments
Share
Open in Discord
y
yun.llllllama
9 months ago
Please advise thanks π
L
Logan M
9 months ago
This is fine -- load_index_from_storage returns BaseIndex type (the base class)
If you print type(use_case_index) you will see that it is indeed a vector store index, but the type checking system has no way of know that
L
Logan M
9 months ago
It's safe to ignore. Or you can cast the type if you really want
Add a reply
Sign up and join the conversation on Discord
Join on Discord