Find answers from the community

Updated 8 months ago

I am trying to make some queries against

I am trying to make some queries against my custom query engine in parallel. I have tried to use both concurrent futures and multiprocessing and both are throwing me random errors. My pipeline works just fine when I simply use a for loop but I want to speed up the processing time as waiting for my response is ineffective. If anyone has used a query engine in parallel with no problems please let me know!
L
d
6 comments
you used query_engine.aquery() ?
It should work tbh
Plain Text
tasks = []
for query_str in queries:
  tasks.append(query_engine.aquery(query_str)

responses = asyncio.gather(*tasks)
ya know i didnt do that. makes a lotta sense. gonna try it
@Logan M also i am looking to setup error tracking with llamaIndex. Is there a list of errors I could recieve from llamaindex or would the errors be from the underlying llm chosen? Is there any examples of it?
Oh man, it really could be anything πŸ˜… api errors, http errors, value errors, etc.
Add a reply
Sign up and join the conversation on Discord