Fantastic, that worked really well! Here is the final code. Thank you!
from llama_index import VectorStoreIndex, SimpleDirectoryReader,ServiceContext, set_global_service_context
from llama_index.llms import Ollama
llm = Ollama(model="mistral", request_timeout=60.0)
ctx = ServiceContext.from_defaults(llm=llm, embed_model="local")
set_global_service_context(ctx)
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What is the authors name?")
print(response)