Find answers from the community

Updated 2 years ago

Graph persist

Plain Text
query_engine_builder = QASummaryQueryEngineBuilder(service_context=service_context_gpt3)
how can I persist index, not to create every time?
L
S
6 comments
I still need to explore this more, but I think you can persist using

graph.root_index.storage_context.persist(persist_dir="my dir")
The docs need a better example for storage... I'll try to make one today at some point
Thank you @Logan M !
I am doing a workaround with this logic, and probably I need to edit this file to get indices instead of creating them https://github.com/jerryjliu/llama_index/blob/main/llama_index/composability/joint_qa_summary.py#L73-L83
Attachment
image.png
IndexBuilder I just cut from joint_qa_summary
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord