Vec evaluate fails for routes with function schemas defined
Closed this issue · 2 comments
semantic-router/semantic_router/layer.py
Line 478 in cbae899
This may be a misunderstanding on my part, but I have some dynamic routes defined that I am trying to fit to set of utterances using the routelayer fit method. It's failing here, with the error:
ValueError: Route has a function schema, but no text was provided.
Can someone provide guidance on whether this is a misuse of the dynamic routes on my part, or an actual bug?
The problem is that we pass vectors (Xq
) rather than text to speed up the evaluation process and ensure we only create embeddings once—this is an oversight on our part.
I think we can resolve this by modifying dynamic routes to be static within the evaluation flow — we will get the team working on it — thanks!
This has been fixed in: #192