Increase max length limits for Milvus storage fields

- Extended entity_name max_length to 512
- Increased entity_type max_length to 128
- Expanded file_path limits to 1024
- Raised src_id/tgt_id limits to 512
This commit is contained in:
yangdx 2025-07-13 23:13:45 +08:00
parent 6730a89d7c
commit 187a623125

View file

@ -41,19 +41,19 @@ class MilvusVectorDBStorage(BaseVectorStorage):
FieldSchema(
name="entity_name",
dtype=DataType.VARCHAR,
max_length=256,
max_length=512,
nullable=True,
),
FieldSchema(
name="entity_type",
dtype=DataType.VARCHAR,
max_length=64,
max_length=128,
nullable=True,
),
FieldSchema(
name="file_path",
dtype=DataType.VARCHAR,
max_length=512,
max_length=1024,
nullable=True,
),
]
@ -62,16 +62,16 @@ class MilvusVectorDBStorage(BaseVectorStorage):
elif "relationships" in self.namespace.lower():
specific_fields = [
FieldSchema(
name="src_id", dtype=DataType.VARCHAR, max_length=256, nullable=True
name="src_id", dtype=DataType.VARCHAR, max_length=512, nullable=True
),
FieldSchema(
name="tgt_id", dtype=DataType.VARCHAR, max_length=256, nullable=True
name="tgt_id", dtype=DataType.VARCHAR, max_length=512, nullable=True
),
FieldSchema(name="weight", dtype=DataType.DOUBLE, nullable=True),
FieldSchema(
name="file_path",
dtype=DataType.VARCHAR,
max_length=512,
max_length=1024,
nullable=True,
),
]
@ -88,7 +88,7 @@ class MilvusVectorDBStorage(BaseVectorStorage):
FieldSchema(
name="file_path",
dtype=DataType.VARCHAR,
max_length=512,
max_length=1024,
nullable=True,
),
]
@ -100,7 +100,7 @@ class MilvusVectorDBStorage(BaseVectorStorage):
FieldSchema(
name="file_path",
dtype=DataType.VARCHAR,
max_length=512,
max_length=1024,
nullable=True,
),
]