Find answers from the community

Updated 2 months ago

This is how I'm calling the query_engine

This is how I'm calling the query_engine:

Plain Text
#################################################################
# Defining a prompt
#################################################################
query =  "Summarize the following document. "
print("Querying...")
start_time = time.time()
response_stream=query_engine.query(query)
print(".")
print(".")
print(".")
response_stream.print_response_stream()
print(".")
print(".")
print(".")
elapsed_time = round((time.time() - start_time), 2)
print(f"Time taken for answer to generate: {elapsed_time} seconds.")


I get an error saying context_str isn't found. How do I point the query engine at the index data?
Add a reply
Sign up and join the conversation on Discord