You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent changes that add inheritance to the different routers, using the evaluate method throws
File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\base.py", line 1214, in fit
best_acc = self._vec_evaluate(Xq=np.array(Xq), y=y)
File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\base.py", line 1258, in _vec_evaluate
route_choice = self(vector=xq, simulate_static=True)
File "C:\Users\User\AppData\Local\miniforge3\envs\semanticRouter\lib\site-packages\semantic_router\routers\hybrid.py", line 215, in __call__
raise ValueError("Either text or sparse_vector must be provided")
ValueError: Either text or sparse_vector must be provided
This is because the __call__ method requires either text or sparse vector, but _vec_evaluate calls it with self(vector=xq, simulate_static=True)
Is there a fix in the works for this?
The text was updated successfully, but these errors were encountered:
With the recent changes that add inheritance to the different routers, using the
evaluate
method throwsThis is because the
__call__
method requires either text or sparse vector, but_vec_evaluate
calls it withself(vector=xq, simulate_static=True)
Is there a fix in the works for this?
The text was updated successfully, but these errors were encountered: