Source code for swarmauri.core.vectors.IVectorMeta

from abc import ABC, abstractmethod
from typing import Any, Dict, List

[docs] class IVectorMeta(ABC): """ Interface for a high-dimensional data vector. This interface defines the basic structure and operations for interacting with vectors in various applications, such as machine learning, information retrieval, and similarity search. """ @property @abstractmethod def id(self) -> str: """ Unique identifier for the vector. This ID can be used to reference the vector in a database or a vector store. """ pass @property @abstractmethod def metadata(self) -> Dict[str, Any]: """ Optional metadata associated with the vector. Metadata can include additional information useful for retrieval, categorization, or description of the vector data. """ pass