Package genlayer_embeddings#
- class genlayer_embeddings.EuclideanDistanceSquared[source]#
Bases:
Distance- __gl_allow_storage__ = True#
- __init__(*args, **kwargs)#
- class genlayer_embeddings.VecDB[source]#
Bases:
GenericData structure that supports storing and querying vector data using Cover Trees
Cover trees provide logarithmic time nearest neighbor search with theoretical guarantees.
There are two entities that can act as a key:
vector (can have duplicates)
id (int alias, can’t have duplicates)
- Element = Element#
- Id = Id#
- __gl_allow_storage__ = True#