from abc import ABC, abstractmethod
from memos.configs.embedder import BaseEmbedderConfig
class BaseEmbedder(ABC):
"""Base class for all Embedding models."""
@abstractmethod
def __init__(self, config: BaseEmbedderConfig):
"""Initialize the embedding model with the given configuration."""
@abstractmethod
def embed(self, texts: list[str]) -> list[list[float]]:
"""Generate embeddings for the given texts."""
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qinshu1109/memos-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server