context str = "abc"
query_str = "def"
template = ("We have provided context information below. \n"
"---------------------\n"
f"{context_str}\n"
"\n---------------------\n"
f"Given this information, please answer the question: {query_str}\n")
text_qa_template = Prompt(template=template)
vector_store = WeaviateVectorStore(weaviate_client=client, index_name="LlamaIndex")
index = VectorStoreIndex.from_vector_store(vector_store=vector_store)
query_engine = index.as_query_engine(text_qa_template=text_qa_template)
response = str(query_engine.query(query_str))