Find answers from the community

Updated 6 months ago

is a baseindex threadsafe? like is it

is a baseindex threadsafe? like is it save to do
Plain Text
from llama_index.core import StorageContext, load_index_from_storage
storage_context = StorageContext.from_defaults(persist_dir=pdir)
index = load_index_from_storage(storage_context)

and then create multiple query engines in various threads?
L
n
2 comments
If you are only ever querying data, its fine. If you are adding more data when others are querying, not sure
Thanks man, its only about querying
Add a reply
Sign up and join the conversation on Discord