Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Semantic Router
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
aurelio-labs
Semantic Router
Commits
7b5cc6c8
Commit
7b5cc6c8
authored
2 months ago
by
Joshua Briggs
Browse files
Options
Downloads
Patches
Plain Diff
feat: updated readme file to use semantic router rather then old route layer
parent
69b49329
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+2
-2
2 additions, 2 deletions
README.md
with
2 additions
and
2 deletions
README.md
+
2
−
2
View file @
7b5cc6c8
...
...
@@ -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.
lay
er
import
Rout
eLay
er
from
semantic_router.
rout
er
s
import
Semantic
Router
rl
=
Rout
eLay
er
(
encoder
=
encoder
,
routes
=
routes
)
rl
=
Semantic
Router
(
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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment