Find answers from the community

Updated 2 years ago

Panda saving

At a glance
but not only that... if I just load a dataframe, try to save_to_disk and once I load_from_disk I get an error:
Plain Text
 ValueError: Only one of documents or index_struct can be provided. 
L
a
7 comments
Ah, that's a bug that needs to be fixed.

But actually, for a pandas and sql index, nothing is really saved in the index, all the data is in your dataframe

So, re-creating the index is fine to do
found another possible issue: querying the GPTPandasIndex directly works, but if i use it within ComposableGraph and query ComposableGraph, I get the error:
Plain Text
File ".pyenv/versions/3.10.6/lib/python3.10/site-packages/llama_index/indices/query/struct_store/pandas.py", line 101, in __init__
    raise ValueError("df must be provided.")
ValueError: df must be provided.
Ohhh interesting πŸ€” tbh I think I haven't seen a pandas or sql index in a graph yet πŸ‘€

@jerryjliu0 do you know if this is supported?
i am thinking, if not supported, at most ComposableGraph should throw a meaningful error on index creation rather than on query time
Thanks for creating that @antonio.aa1979 I agree πŸ‘
Add a reply
Sign up and join the conversation on Discord