Skip to content

Commit

Permalink
fix string chunk (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 committed Dec 20, 2023
2 parents f9add15 + d805b35 commit da6aff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/api/v1/knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def text_knowledge(
except Exception as e:
logger.exception(e)

separator = ['\n\n', '\n', ' ', '']
separator = '\n\n'
chunk_size = 500
chunk_overlap = 50

Expand Down

0 comments on commit da6aff1

Please sign in to comment.