Skip to content

Commit

Permalink
feat: 用户在没有匹配到知识库数据依然使用提示词信息
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Mar 26, 2024
1 parent 0c55c9a commit 0a21249
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def to_human_message(prompt: str,
max_paragraph_char_number: int,
paragraph_list: List[ParagraphPipelineModel]):
if paragraph_list is None or len(paragraph_list) == 0:
return HumanMessage(content=problem)
return HumanMessage(content=prompt.format(**{'data': "<data></data>", 'question': problem}))
temp_data = ""
data_list = []
for p in paragraph_list:
Expand Down

0 comments on commit 0a21249

Please sign in to comment.