Browse Source
Update to latest prompt
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
1 changed files with
1 additions and
1 deletions
-
eqa_search.py
|
@ -121,7 +121,7 @@ def enhanced_qa_search_pipe(config): |
|
|
p = p.map('result', 'result', sim_eval_op) |
|
|
p = p.map('result', 'result', sim_eval_op) |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
p.map('result', 'docs', lambda x:[i[2] for i in x]) |
|
|
|
|
|
|
|
|
p.map('result', 'docs', lambda x: '\n'.join([i[2] for i in x]) |
|
|
.map(('question', 'docs', 'history'), 'prompt', ops.prompt.question_answer(llm_name=config.llm_src)) |
|
|
.map(('question', 'docs', 'history'), 'prompt', ops.prompt.question_answer(llm_name=config.llm_src)) |
|
|
.map('prompt', 'answer', llm_op) |
|
|
.map('prompt', 'answer', llm_op) |
|
|
) |
|
|
) |
|
|