File size: 605 Bytes
892fa81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """
Embedding Core — shared embedding generation and vector operations.
Currently provides pure-numpy vector ops. When CLIP or other embedding
providers are added, the model-loading + inference code lives here so
every provider shares the same loaded model (load once, use many).
"""
from cores.embedding.vectors import (
normalize,
cosine_similarity,
euclidean_distance,
batch_cosine_similarity,
)
from cores.embedding.cache import EmbeddingCache
__all__ = [
"normalize",
"cosine_similarity",
"euclidean_distance",
"batch_cosine_similarity",
"EmbeddingCache",
]
|