Hello, I'm getting a very strange error, is anyone able to help me with this?
--> 193 selected_query_engine = self._query_engines[result.ind]
194 log_str = f"Selecting query engine {result.ind}: {result.reason}."
195 logger.info(log_str)
IndexError: list index out of range
Below is the code that is causing it
query_engine = RouterQueryEngine(
selector=LLMSingleSelector.from_defaults(),
query_engine_tools=[
vector_tool,
],
verbose=True
)
response = query_engine.query(
'''<|begin_of_text|><|start_header_id|>user<|end_header_id|>
Which pa of brachial plexus do not give branches
...
Cord
Trunk
Respond with the correct choice from the list above verbatim. Do not include any explanation.<|eot_id|><|start_header_id|>assistant<|end_header_id|><|begin_of_text|><|start_header_id|>user<|end_header_id|>
Which pa of brachial plexus do not give branches
...
Cord
Trunk
Respond with the correct choice from the list above verbatim. Do not include any explanation.<|eot_id|><|start_header_id|>assistant<|end_header_id|>'''
)
print(str(response))