Skip to content

Commit 88c4b70

Browse files
committed
fix: redis backend
1 parent a3bd513 commit 88c4b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

veadk/knowledgebase/backends/redis_backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ def model_post_init(self, __context: Any) -> None:
113113
self._vector_store = RedisVectorStore(
114114
schema=self._schema,
115115
redis_client=self._redis_client,
116-
overwrite=True,
116+
overwrite=False,
117117
collection_name=self.index,
118118
)
119119

120120
self._storage_context = StorageContext.from_defaults(
121121
vector_store=self._vector_store
122122
)
123123

124-
self._vector_index = VectorStoreIndex.from_documents(
125-
documents=[],
124+
self._vector_index = VectorStoreIndex(
125+
nodes=[],
126126
storage_context=self._storage_context,
127127
embed_model=self._embed_model,
128128
)

0 commit comments

Comments
 (0)