docarray.array.storage.annlite.backend module#

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

Bases: object

n_dim: int#
metric: str = 'cosine'#
list_like: bool = True#
serialize_config: Dict#
data_path: Optional[str] = None#
ef_construction: Optional[int] = None#
max_connection: Optional[int] = None#
n_components: Optional[int] = None#
columns: Optional[Union[List[Tuple[str, str]], Dict[str, str]]] = None#
root_id: bool = True#
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'>)}#