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
Sync feature is not functioning correctly when local routes do not exist but are present remotely.
Steps to Reproduce:
In Pinecone, define the following routes:
("politics", "isn't politics the best thing ever")
("politics", "why don't you tell me about your political opinions")
Locally, define the following route:
chitchat = Route(
name="chitchat",
utterances=[
"how's the weather today?",
"how's the weather today my super duper dear?",
"how are things going?",
"how are you doing today?"
],
)
routes = [chitchat]
encoder = ...
pc_index = PineconeIndex(
...
sync="merge-force-local"
)
rl = RouteLayer(encoder=encoder, routes=routes, index=pc_index)
print(rl("What do you think about the president?"))
Expected Behavior:
When using a politics input to layer we expect to get politics route correctly triggered.
Actual Behavior:
An error is returned indicating that no route with the name "politics" is found locally: ERROR semantic_router.utils.logger No route found with name politics. Check to see if any Routes have been defined
The text was updated successfully, but these errors were encountered:
Sync feature is not functioning correctly when local routes do not exist but are present remotely.
Steps to Reproduce:
Expected Behavior:
When using a politics input to layer we expect to get politics route correctly triggered.
Actual Behavior:
An error is returned indicating that no route with the name "politics" is found locally:
ERROR semantic_router.utils.logger No route found with name politics. Check to see if any Routes have been defined
The text was updated successfully, but these errors were encountered: