Quellcode durchsuchen

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 vor 10 Monaten
Ursprung
Commit
96da618b6a
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      api/db/services/dialog_service.py

+ 1
- 1
api/db/services/dialog_service.py Datei anzeigen

@@ -124,7 +124,7 @@ def kb_prompt(kbinfos, max_tokens):
for i, ck in enumerate(kbinfos["chunks"]):
if i >= chunks_num:
break
doc2chunks["docnm_kwd"].append(ck["content_with_weight"])
doc2chunks[ck["docnm_kwd"]].append(ck["content_with_weight"])

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

Laden…
Abbrechen
Speichern