llm = Ollama(model="mixtral",request_timeout=60.0) service_context = ServiceContext.from_defaults(llm=llm) PERSIST_DIR = "./Data/storage/node_storage" if not os.path.exists(PERSIST_DIR): # load the documents and create the index documents = docs index = VectorStoreIndex.from_documents(documents) index = VectorStoreIndex( service_context=service_context, ) # store it for later index.storage_context.persist(persist_dir=PERSIST_DIR)