Enhance embedding configuration with custom embedder support (#2060)

* Enhance embedding configuration with custom embedder support

- Add support for custom embedding functions in EmbeddingConfigurator
- Update type hints for embedder configuration
- Extend configuration options for various embedding providers
- Add optional embedder configuration to Memory class

* added docs

* Refine custom embedder configuration support

- Update custom embedder configuration method to handle custom embedding functions
- Modify type hints for embedder configuration
- Remove unused model_name parameter in custom embedder configuration
This commit is contained in:
Lorenze Jay
2025-02-07 13:49:46 -08:00
committed by GitHub
parent a7f5d574dc
commit e529766391
4 changed files with 80 additions and 12 deletions

View File

@@ -10,6 +10,8 @@ class Memory(BaseModel):
Base class for memory, now supporting agent tags and generic metadata.
"""
embedder_config: Optional[Dict[str, Any]] = None
storage: Any
def __init__(self, storage: Any, **data: Any):