How do you run a list of queries using the one query engine?
I have tried using asyncio (as I would with openai completions.create) but it is not working.
I even just tried a simple for loop over a list. see below but it doesn't work either. What am I missing?
query_list = [
"What is the Front Setback Distance for a lot if the lot is in a R-1 zone (Single Family Residential 15 acres gross area), the lot width is 91.2 ft , the lot area is 0.5 acre and the front of the lot is 15 ft from the nearest road centerline. Check Front Secondary first for the answer. Provide a step by step process with references of how you came to the required distance. Also provide just the final required distance. \n\nDesired format:\nProcess:\nDistance: ",
"What is the Side Setback Distance for a lot if the lot is in a R-1 zone (Single Family Residential 15 acres gross area), the lot width is 91.2 ft Make sure the answer is no less or more than what is required. Provide a step by step process with references of how you came to the required distance. Also provide just the final required distance. \n\nDesired format:\nProcess:\nDistance: ",
"What is the Rear Setback Distance for a lot if the lot is in a R-1 zone (Single Family Residential 15 acres gross area), the lot width is 91.2 ft , the lot area is 0.5 and the rear of the lot has has no road access. Make sure the answer is no less or more than what is required. Provide a step by step process with references of how you came to the required distance. Also provide just the final required distance. \n\nDesired format:\nProcess:\nDistance: "
]
results = []
for i in query_list:
res = query_engine.query(i)
results.append(res)