Skip to content

Commit

Permalink
Merge pull request #51 from aurelio-labs/jamescalam-patch-1
Browse files Browse the repository at this point in the history
Update README to show latest syntax
  • Loading branch information
jamescalam authored Dec 30, 2023
2 parents b168b2d + 8f55014 commit 98052cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ chitchat = Route(
)

# we place both of our decisions together into single list
decisions = [politics, chitchat]
routes = [politics, chitchat]
```

We have our decisions ready, now we initialize an embedding / encoder model. We currently support a `CohereEncoder` and `OpenAIEncoder` — more encoders will be added soon. To initialize them we do:
Expand All @@ -75,7 +75,7 @@ With our `decisions` and `encoder` defined we now create a `DecisionLayer`. The
```python
from semantic_router.layer import RouteLayer

dl = RouteLayer(encoder=encoder, decisions=decisions)
dl = RouteLayer(encoder=encoder, routes=routes)
```

We can now use our decision layer to make super fast decisions based on user queries. Let's try with two queries that should trigger our decisions:
Expand Down

0 comments on commit 98052cb

Please sign in to comment.