Skip to content

Commit

Permalink
Fix field missing issue. (#3931)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#3905
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Dec 9, 2024
1 parent aaec630 commit 215e936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rag/svr/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def embedding(docs, mdl, parser_config=None, callback=None):
batch_size = 16
tts, cnts = [], []
for d in docs:
tts.append(rmSpace(d["title_tks"]))
tts.append(rmSpace(d.get("docnm_kwd", "Title")))
c = "\n".join(d.get("question_kwd", []))
if not c:
c = d["content_with_weight"]
Expand Down

0 comments on commit 215e936

Please sign in to comment.