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
This commit is contained in:
Lorenze Jay
2025-02-07 12:41:57 -08:00
parent abee94d056
commit cafac13447
3 changed files with 47 additions and 11 deletions

View File

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

View File

@@ -13,7 +13,7 @@ class BaseRAGStorage(ABC):
self,
type: str,
allow_reset: bool = True,
embedder_config: Optional[Any] = None,
embedder_config: Optional[Dict[str, Any]] = None,
crew: Any = None,
):
self.type = type