such a cool idea - and it does exactly what it sounds like it needs to do. will be very useful for tool use and llm routing
@jamesbriggsАй бұрын
yeah we use it all the time for a lot of different things, I'm planning to share more hands on examples soon
@wild0nE12Ай бұрын
Would the semantic router work if the questions are written in different languages?
@DoktorUdeАй бұрын
If you use a multilingual embedding model like those from OpenAI, you should be fine. It will likely work best when the utterances and input language are the same, but in theory, it should still function even if they are different.
@jamesbriggsАй бұрын
I can put together an example for multilingual use - but yeah it's pretty easy, I'd probably recommend using Cohere's models if you want a hosted multilingual model, this link should help: - Cohere multilingual model ie "embed-multilingual-v3.0" huggingface.co/Cohere/Cohere-embed-multilingual-v3.0 In semantic router you would install the cohere dependency, ie `pip install semantic-router[cohere]` then use their encoder like: ``` import os from semantic_router.encoders import CohereEncoder os.environ["COHERE_API_KEY"] = "your_api_key" encoder = CohereEncoder(name="embed-multilingual-v3.0") ``` With that you're good to go :)
@wild0nE12Ай бұрын
Thanks! 💯
@DemetrioFilocamoАй бұрын
It would be good to have some examples to test or see the real life results, like when you did the 75% discount example, I could see how we can semantically block ANY discount to be proposed by the llm, but will it work if we want to allow max 10% discount instead?
@waterangel27312 күн бұрын
awesome content. Let me try to use this. Just a small thing, is your voice in this video is abit too boomy, maybe can reduce the bass when you do the edit
@jamesbriggs10 күн бұрын
my mic audio was messed up so I had to use laptop audio unfortunately - it should be better in other videos :)
@anshulbhideАй бұрын
Great video! However, Doesn't the latest version (0.0.72) use RouteLayer instead of SemanticRouter?
@jamesbriggsАй бұрын
0.0.72 is the latest release, but there have been a few “prereleases”, which are all numbered from 0.1.0.dev0 to 0.1.0.dev3, because they’re prereleases, pip won’t install them unless you specify that exact version - once everything is ready I’ll mark the 0.1.0 full release