This project is mirrored from https://github.com/aurelio-labs/semantic-router.
Pull mirroring updated .
- Mar 11, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
Introduced _simulate_static_route_selection which simulates static routes, even when dynamic routes are being evaluated in _vec_evaluate(). This was necessary as dynamic routes use text inputs, but we use vector inputs when evaluating for increased performance. Also refactored a little to avoid code duplication between _simulate_static_route_selection() and __call__().
-
- Feb 22, 2024
-
-
dwmorris11 authored
-
dwmorris11 authored
-
- Feb 21, 2024
-
-
Ismail Ashraq authored
-
Ismail Ashraq authored
-
- Feb 20, 2024
-
-
zahid-syed authored
-
zahid-syed authored
-
zahid-syed authored
-
- Feb 19, 2024
-
-
Bogdan Buduroiu authored
-
- Feb 16, 2024
-
-
Simonas authored
-
- Feb 14, 2024
-
-
James Briggs authored
-
- Feb 13, 2024
-
-
James Briggs authored
-
James Briggs authored
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
Saving Layer Configs as JSON or YAML config files by representing the LayerConfig object as a dict and then turning into JSON/YAML wasn't working. See issue here: https://github.com/aurelio-labs/semantic-router/issues/144 The issue was that, by attempting this, we were attempting to serialize all objects included in the Layer, including Routes, and the LLMs that those Routes use. In the case of the above issue, the LLM was a Cohere one, which included a Client as one of its attributes, and this Client is not serializable. So, instead of attempting to represent the entire LLM object a dict, to then be converted into JSON/YAML, we only keep key information about the LLM: 'module': self.llm.__module__, 'class': self.llm.__class__.__name__, 'model': self.llm.name This is what's saved in route.py, and then sent to layer.py to be serialized (in LayerConfig.to_file()). Then, when it comes time to load from the file via LayerConfig.from_file, the LLM is re-initialized dynamically.
-
- Feb 12, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
Mostly just trying to make MyPy happy!
-
- Feb 11, 2024
-
-
James Briggs authored
-
- Feb 10, 2024
-
-
James Briggs authored
-
- Feb 08, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
- Feb 07, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
- Feb 06, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
Also fixed bug in layer.py where we weren't: a) Setting the index_name to a default value. b) Weren't using index_name.
-
Siraj R Aizlewood authored
Making pydantic leave me alone and giving the correct index name.
-
Siraj R Aizlewood authored
Also made sure it's used properly in layer.py.
-
- Jan 29, 2024
-
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
list_route_names for checking current route names. remove for removing route and its associated data..
-
- Jan 27, 2024
-
-
James Briggs authored
-
James Briggs authored
-
- Jan 26, 2024
-
-
James Briggs authored
-
James Briggs authored
-
James Briggs authored
-
James Briggs authored
-