Skip to content
Snippets Groups Projects
Commit 7b5cc6c8 authored by Joshua Briggs's avatar Joshua Briggs
Browse files

feat: updated readme file to use semantic router rather then old route layer

parent 69b49329
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,9 @@ encoder = OpenAIEncoder()
With our `routes` and `encoder` defined we now create a `RouteLayer`. The route layer handles our semantic decision making.
```python
from semantic_router.layer import RouteLayer
from semantic_router.routers import SemanticRouter
rl = RouteLayer(encoder=encoder, routes=routes)
rl = SemanticRouter(encoder=encoder, routes=routes, auto_sync="local")
```
We can now use our route layer to make super fast decisions based on user queries. Let's try with two queries that should trigger our route decisions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment