docarray.array.storage.annlite.backend module#

class docarray.array.storage.annlite.backend.AnnliteConfig(n_dim, metric='cosine', serialize_config=<factory>, data_path=None, ef_construction=None, ef_search=None, max_connection=None, columns=None)[source]#

Bases: object

n_dim: int#
metric: str = 'cosine'#
serialize_config: Dict#
data_path: Optional[str] = None#
ef_construction: Optional[int] = None#
max_connection: Optional[int] = None#
columns: Optional[Union[List[Tuple[str, str]], Dict[str, str]]] = None#
class docarray.array.storage.annlite.backend.BackendMixin[source]#

Bases: BaseBackendMixin

Provide necessary functions to enable this storage backend.

TYPE_MAP: Dict[str, TypeMap] = {'float': TypeMap(type='float', converter=<class 'float'>), 'int': TypeMap(type='int', converter=<function _safe_cast_int>), 'str': TypeMap(type='str', converter=<class 'str'>)}#