File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
59
59
indexer : $document_store
60
60
# You can set the number of documents to be included as the context of the query
61
61
# search_topk: 6
62
+ # You can use your own prompt for querying.
63
+ # For that set prompt_template to string with `{query}` used as a placeholder for the question,
64
+ # and `{context}` as a placeholder for context documents.
65
+ # prompt_template: "Given these documents: {context}, please answer the question: {query}"
62
66
63
67
# Change host and port by uncommenting these lines
64
68
# host: "0.0.0.0"
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ question_answerer: !pw.xpacks.llm.question_answering.BaseRAGQuestionAnswerer
65
65
indexer : $document_store
66
66
# You can set the number of documents to be included as the context of the query
67
67
# search_topk: 6
68
+ # You can use your own prompt for querying.
69
+ # For that set prompt_template to string with `{query}` used as a placeholder for the question,
70
+ # and `{context}` as a placeholder for context documents.
71
+ # prompt_template: "Given these documents: {context}, please answer the question: {query}"
68
72
69
73
# Change host and port by uncommenting these lines
70
74
# host: "0.0.0.0"
You can’t perform that action at this time.
0 commit comments