Browse Source

Fix bug over chunks classification by document in the promp (#4156)

The refactor in 0.15 contains a small bug that eliminate the
classification

### What problem does this PR solve

### Type of change

- [X] Bug Fix (non-breaking change which fixes an issue)
tags/v0.15.1
devMls 10 months ago
parent
commit
96da618b6a
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/db/services/dialog_service.py

+ 1
- 1
api/db/services/dialog_service.py View File

for i, ck in enumerate(kbinfos["chunks"]): for i, ck in enumerate(kbinfos["chunks"]):
if i >= chunks_num: if i >= chunks_num:
break break
doc2chunks["docnm_kwd"].append(ck["content_with_weight"])
doc2chunks[ck["docnm_kwd"]].append(ck["content_with_weight"])


knowledges = [] knowledges = []
for nm, chunks in doc2chunks.items(): for nm, chunks in doc2chunks.items():

Loading…
Cancel
Save