Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions weaviate/classes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@
Configure,
ConsistencyLevel,
DataType,
GenerativeConfigCreate,
GenerativeSearches,
IndexName,
InvertedIndexConfigCreate,
MultiTenancyConfigCreate,
PQEncoderDistribution,
PQEncoderType,
Property,
Reconfigure,
ReferenceProperty,
ReplicationConfigCreate,
ReplicationDeletionStrategy,
RerankerConfigCreate,
Rerankers,
ShardingConfigCreate,
StopwordsCreate,
StopwordsPreset,
TextAnalyzerConfig,
TextAnalyzerConfigCreate,
Tokenization,
VectorDistances,
)
from weaviate.collections.classes.config_object_ttl import ObjectTTLConfigCreate
from weaviate.collections.classes.config_vector_index import (
MultiVectorAggregation,
VectorFilterStrategy,
VectorIndexConfigCreate,
)
from weaviate.collections.classes.config_vectorizers import Multi2VecField, Vectorizers
from weaviate.connect.integrations import Integrations
Expand All @@ -30,17 +38,24 @@
"ConsistencyLevel",
"Reconfigure",
"DataType",
"GenerativeConfigCreate",
"GenerativeSearches",
"IndexName",
"Integrations",
"InvertedIndexConfigCreate",
"Multi2VecField",
"MultiTenancyConfigCreate",
"MultiVectorAggregation",
"ObjectTTLConfigCreate",
"ReplicationConfigCreate",
"ReplicationDeletionStrategy",
"RerankerConfigCreate",
"Property",
"PQEncoderDistribution",
"PQEncoderType",
"ReferenceProperty",
"Rerankers",
"ShardingConfigCreate",
"StopwordsCreate",
"StopwordsPreset",
"TextAnalyzerConfig",
Expand All @@ -49,4 +64,5 @@
"Vectorizers",
"VectorDistances",
"VectorFilterStrategy",
"VectorIndexConfigCreate",
]
8 changes: 8 additions & 0 deletions weaviate/collections/classes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3101,3 +3101,11 @@ def multi_tenancy(
autoTenantCreation=auto_tenant_creation,
autoTenantActivation=auto_tenant_activation,
)


GenerativeConfigCreate: TypeAlias = _GenerativeProvider
InvertedIndexConfigCreate: TypeAlias = _InvertedIndexConfigCreate
MultiTenancyConfigCreate: TypeAlias = _MultiTenancyConfigCreate
ReplicationConfigCreate: TypeAlias = _ReplicationConfigCreate
RerankerConfigCreate: TypeAlias = _RerankerProvider
ShardingConfigCreate: TypeAlias = _ShardingConfigCreate
5 changes: 5 additions & 0 deletions weaviate/collections/classes/config_object_ttl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import datetime
from typing import Optional

from typing_extensions import TypeAlias

from weaviate.collections.classes.config_base import _ConfigCreateModel, _ConfigUpdateModel


Expand Down Expand Up @@ -156,3 +158,6 @@ def delete_by_date_property(
filterExpiredObjects=filter_expired_objects,
defaultTtl=ttl_offset,
)


ObjectTTLConfigCreate: TypeAlias = _ObjectTTLConfigCreate
5 changes: 4 additions & 1 deletion weaviate/collections/classes/config_vector_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Any, Dict, Literal, Optional, overload

from pydantic import Field
from typing_extensions import deprecated
from typing_extensions import TypeAlias, deprecated

from weaviate.collections.classes.config_base import (
_ConfigCreateModel,
Expand Down Expand Up @@ -670,3 +670,6 @@ def dynamic(
quantizer=None,
multivector=None,
)


VectorIndexConfigCreate: TypeAlias = _VectorIndexConfigCreate