We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da62c8 commit 15cdbacCopy full SHA for 15cdbac
src/memos/vec_dbs/milvus.py
@@ -21,6 +21,7 @@ class MilvusVecDB(BaseVecDB):
21
def __init__(self, config: MilvusVecDBConfig):
22
"""Initialize the Milvus vector database and the collection."""
23
from pymilvus import MilvusClient
24
+
25
self.config = config
26
27
# Create Milvus client
@@ -34,6 +35,7 @@ def __init__(self, config: MilvusVecDBConfig):
34
35
def create_schema(self):
36
"""Create schema for the milvus collection."""
37
from pymilvus import DataType
38
39
schema = self.client.create_schema(auto_id=False, enable_dynamic_field=True)
40
schema.add_field(
41
field_name="id", datatype=DataType.VARCHAR, max_length=65535, is_primary=True
0 commit comments