Skip to content

Commit

Permalink
fix: tencentvectordb inconsistent attribute name (run-llama#15733)
Browse files Browse the repository at this point in the history
  • Loading branch information
surviffer authored Aug 30, 2024
1 parent 25e0e0d commit da8bacb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _create_collection(
collection_name: str = self._compute_collection_name(
database_name, collection_params
)
collection_description = collection_params.collection_description
collection_description = collection_params._collection_description

if collection_params is None:
raise ValueError(VALUE_NONE_ERROR.format("collection_params"))
Expand All @@ -300,9 +300,9 @@ def _compute_collection_name(
database_name: str, collection_params: CollectionParams
) -> str:
if database_name == DEFAULT_DATABASE_NAME:
return collection_params.collection_name
if collection_params.collection_name != DEFAULT_COLLECTION_NAME:
return collection_params.collection_name
return collection_params._collection_name
if collection_params._collection_name != DEFAULT_COLLECTION_NAME:
return collection_params._collection_name
else:
return database_name + "_" + DEFAULT_COLLECTION_NAME

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-vector-stores-tencentvectordb"
readme = "README.md"
version = "0.2.0"
version = "0.2.1"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
llama-index-core = "^0.11.0"
tcvectordb = "^1.3.13"

[tool.poetry.group.dev.dependencies]
ipython = "8.10.0"
Expand Down

0 comments on commit da8bacb

Please sign in to comment.