fix issue: user’s keywords do not affect when add segment (#3349)

This commit is contained in:
Jyong 2024-04-11 16:34:52 +08:00 committed by GitHub
parent 18b855140d
commit 37024afe9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ class VectorService:
keyword = Keyword(dataset)
if keywords_list and len(keywords_list) > 0:
keyword.add_texts(documents, keyword_list=keywords_list)
keyword.add_texts(documents, keywords_list=keywords_list)
else:
keyword.add_texts(documents)