fix only full text search in app issue (#1736)
Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
parent
79b4366203
commit
8c451eb0e6
3 changed files with 14 additions and 2 deletions
|
|
@ -141,6 +141,16 @@ class WeaviateVectorIndex(BaseVectorIndex):
|
|||
"valueText": document_id
|
||||
})
|
||||
|
||||
def delete_by_group_id(self, group_id: str):
|
||||
if self._is_origin():
|
||||
self.recreate_dataset(self.dataset)
|
||||
return
|
||||
|
||||
vector_store = self._get_vector_store()
|
||||
vector_store = cast(self._get_vector_store_class(), vector_store)
|
||||
|
||||
vector_store.delete()
|
||||
|
||||
def _is_origin(self):
|
||||
if self.dataset.index_struct_dict:
|
||||
class_prefix: str = self.dataset.index_struct_dict['vector_store']['class_prefix']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue