Init embedding_model_dims in all vectordbs (#2572)

This commit is contained in:
Dev Khant
2025-04-19 10:53:01 +05:30
committed by GitHub
parent 78912928bc
commit 3ee4768c14
7 changed files with 9 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ def get_or_create_user_id(vector_store):
# If we get here, we need to insert the user_id
try:
dims = getattr(vector_store, "embedding_model_dims", 1)
dims = getattr(vector_store, "embedding_model_dims", 1536)
vector_store.insert(
vectors=[[0.0] * dims], payloads=[{"user_id": user_id, "type": "user_identity"}], ids=[VECTOR_ID]
)