llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

Load GPTSQLStructStoreIndex from disk

Open Thieund opened this issue 2 years ago • 2 comments

Hi, I've created a GPTSQLStructStoreIndex and saved it to disk. Then I tried to load it from disk as following: index = GPTSQLStructStoreIndex.load_from_disk('citizenDb.json', sql_database=sql_database) I encountered the error "Only one of documents or index_struct can be provided." Could anyone help me with that ? Thanks.

Thieund avatar Mar 16 '23 12:03 Thieund

Looks like a small bug, we will take a look at this soon!

Disiok avatar Mar 18 '23 16:03 Disiok

should be fixed by #765, will help land soon

jerryjliu avatar Mar 20 '23 17:03 jerryjliu

There is technically nothing to save with our struct stores (although we should do a better job at handling this). Tracking the issue internally, thanks!

logan-markewich avatar Jun 06 '23 01:06 logan-markewich