This project is mirrored from https://github.com/aurelio-labs/semantic-router.
Pull mirroring updated .
- Apr 28, 2024
-
-
Siraj R Aizlewood authored
-
- Apr 26, 2024
-
-
Siraj R Aizlewood authored
-
- Feb 27, 2024
- Feb 19, 2024
-
-
Bogdan Buduroiu authored
-
Bogdan Buduroiu authored
-
- Feb 17, 2024
-
-
James Briggs authored
-
- Feb 13, 2024
-
-
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.
-
- Jan 26, 2024
-
-
James Briggs authored
-
James Briggs authored
-
James Briggs authored
-
- Jan 23, 2024
-
-
Siraj R Aizlewood authored
-
- Jan 22, 2024
-
-
Arash Mosharraf authored
-
- Jan 18, 2024
-
-
Arash Mosharraf authored
-
- Jan 16, 2024
-
-
Arash Mosharraf authored
-
Kenny authored
-
- Jan 13, 2024
-
-
Bogdan Buduroiu authored
-
Bogdan Buduroiu authored
-
James Briggs authored
-
- Jan 12, 2024
-
-
hananel authored
-
- Jan 11, 2024
- Jan 10, 2024
-
-
Simonas authored
-
- Jan 07, 2024
-
-
James Briggs authored
-
- Jan 06, 2024
-
-
Ismail Ashraq authored
-
- Jan 05, 2024
-
-
Simonas authored
-
- Jan 02, 2024
-
-
Simonas authored
-
- Dec 28, 2023
-
-
James Briggs authored
-
- Dec 27, 2023
-
-
James Briggs authored
-
James Briggs authored
-
- Dec 26, 2023
-
-
James Briggs authored
-
James Briggs authored
-
- Dec 20, 2023
- Dec 19, 2023