prompt
copied
Update readme
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
@ -33,7 +33,7 @@ input:
p = (
pipe.input('question', 'doc', 'history')
.map('docs', 'docs', lambda x: x[:2000])
.map('doc', 'doc', lambda x: x[:2000])
.map(('question', 'doc', 'history'), 'prompt', ops.prompt.template(temp, ['question', 'context']))
.map('prompt', 'answer', ops.LLM.OpenAI())
.output('answer')