chore: apply ruff's pyflakes linter rules (#2420)

This commit is contained in:
Bowen Liang 2024-02-08 14:11:10 +08:00 • committed by GitHub
commit 14a19a3da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 91 additions and 86 deletions

View file

@ -26,7 +26,7 @@ class VectorIndex:
vector_type = self._dataset.index_struct_dict['type']
if not vector_type:
raise ValueError(f"Vector store must be specified.")
raise ValueError("Vector store must be specified.")
if vector_type == "weaviate":
from core.index.vector_index.weaviate_vector_index import WeaviateConfig, WeaviateVectorIndex