Skip to content

Commit

Permalink
Update to milvus.py to load the configuration also in the init_collec…
Browse files Browse the repository at this point in the history
…tion function
  • Loading branch information
DGdev91 committed Apr 24, 2023
1 parent 04f6ffd commit b7defd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogpt/memory/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, cfg: Config) -> None:
secure=self.secure,
)

self.init_collection()
self.init_collection(cfg)

def configure(self, cfg: Config) -> None:
# init with configuration.
Expand Down Expand Up @@ -69,7 +69,7 @@ def configure(self, cfg: Config) -> None:
"params": {},
}

def init_collection(self) -> None:
def init_collection(self, cfg: Config) -> None:
"""Initialize collection in vector database."""
fields = [
FieldSchema(name="pk", dtype=DataType.INT64, is_primary=True, auto_id=True),
Expand Down

0 comments on commit b7defd2

Please sign in to comment.