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:
parent
6730a89d7c
commit
187a623125
1 changed files with 8 additions and 8 deletions
|
|
@ -41,19 +41,19 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="entity_name",
|
name="entity_name",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=256,
|
max_length=512,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="entity_type",
|
name="entity_type",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=64,
|
max_length=128,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="file_path",
|
name="file_path",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=512,
|
max_length=1024,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
@ -62,16 +62,16 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
elif "relationships" in self.namespace.lower():
|
elif "relationships" in self.namespace.lower():
|
||||||
specific_fields = [
|
specific_fields = [
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="src_id", dtype=DataType.VARCHAR, max_length=256, nullable=True
|
name="src_id", dtype=DataType.VARCHAR, max_length=512, nullable=True
|
||||||
),
|
),
|
||||||
FieldSchema(
|
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="weight", dtype=DataType.DOUBLE, nullable=True),
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="file_path",
|
name="file_path",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=512,
|
max_length=1024,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
@ -88,7 +88,7 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="file_path",
|
name="file_path",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=512,
|
max_length=1024,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
@ -100,7 +100,7 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
FieldSchema(
|
FieldSchema(
|
||||||
name="file_path",
|
name="file_path",
|
||||||
dtype=DataType.VARCHAR,
|
dtype=DataType.VARCHAR,
|
||||||
max_length=512,
|
max_length=1024,
|
||||||
nullable=True,
|
nullable=True,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue