We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7882be + 56a1dc0 commit b46a305Copy full SHA for b46a305
semantic_router/routers/base.py
@@ -724,6 +724,8 @@ async def _async_pass_routes(
724
route.llm = self.llm
725
# TODO need to move to asyncio tasks and gather
726
route_choice = await route.acall(query=text)
727
+ if route_choice is not None and route_choice.similarity_score is None:
728
+ route_choice.similarity_score = total_score
729
passed_routes.append(route_choice)
730
elif passed and route is not None and simulate_static:
731
passed_routes.append(
0 commit comments