This project is mirrored from https://github.com/aurelio-labs/semantic-router.
Pull mirroring updated .
- 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 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
-
James Briggs authored
-
- Jan 25, 2024
-
-
Siraj R Aizlewood authored
To tidy up __call__ in RouteLayer.
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
The test TestRouteLayer::test_query_with_no_index was failing because when it ran assert route_layer("Anything").name is None There were no Routes defined yet, and this meant that route = [route for route in self.routes if route.name == top_class][0] was raising an error. If no routes are defined then we can just defualt to RouteChoice().
-
Siraj R Aizlewood authored
-
Siraj R Aizlewood authored
-