docarray.array.storage.weaviate.backend module#

class docarray.array.storage.weaviate.backend.WeaviateConfig(host='localhost', port=8080, protocol='http', name=None, list_like=True, serialize_config=<factory>, n_dim=None, ef=None, ef_construction=None, timeout_config=(10, 60), max_connections=None, dynamic_ef_min=None, dynamic_ef_max=None, dynamic_ef_factor=None, vector_cache_max_objects=None, flat_search_cutoff=None, cleanup_interval_seconds=None, skip=None, columns=None, distance=None, batch_size=50, dynamic_batching=False, root_id=True)[source]#

Bases: object

This class stores the config variables to initialize connection to the Weaviate server

host: Optional[str] = 'localhost'#
port: Optional[int] = 8080#
protocol: Optional[str] = 'http'#
name: Optional[str] = None#
list_like: bool = True#
serialize_config: Dict#
n_dim: Optional[int] = None#
ef: Optional[int] = None#
ef_construction: Optional[int] = None#
timeout_config: Optional[Tuple[int, int]] = (10, 60)#
max_connections: Optional[int] = None#
dynamic_ef_min: Optional[int] = None#
dynamic_ef_max: Optional[int] = None#
dynamic_ef_factor: Optional[int] = None#
vector_cache_max_objects: Optional[int] = None#
flat_search_cutoff: Optional[int] = None#
cleanup_interval_seconds: Optional[int] = None#
skip: Optional[bool] = None#
columns: Optional[Union[List[Tuple[str, str]], Dict[str, str]]] = None#
distance: Optional[str] = None#
batch_size: Optional[int] = 50#
dynamic_batching: Optional[bool] = False#
root_id: bool = True#
class docarray.array.storage.weaviate.backend.BackendMixin[source]#

Bases: BaseBackendMixin

Provide necessary functions to enable this storage backend.

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

An alias to _class_name that returns the id/name of the class in the weaviate of this DocumentArrayWeaviate

Returns:

name of weaviate class/schema of this DocumentArrayWeaviate