add query
This commit is contained in:
parent
fac0dcc257
commit
10eaa7cd02
@ -15,7 +15,11 @@ pub async fn handle_request(
|
|||||||
let body = Question::process(&app_ctx.md, &body);
|
let body = Question::process(&app_ctx.md, &body);
|
||||||
|
|
||||||
let question = Question::new(&app_ctx.md, &body);
|
let question = Question::new(&app_ctx.md, &body);
|
||||||
let response = app_ctx.wizard.ask(question).await?;
|
let response = app_ctx.wizard.ask(question).await;
|
||||||
|
if let Err(e) = response.as_ref() {
|
||||||
|
tracing::error!("Err in wizard {:?}", e);
|
||||||
|
}
|
||||||
|
let response = response?;
|
||||||
|
|
||||||
let hyper_response = hyper::Response::builder()
|
let hyper_response = hyper::Response::builder()
|
||||||
.header("content-type", "application/json")
|
.header("content-type", "application/json")
|
||||||
|
@ -7,7 +7,7 @@ Search the markdown below and answer according to that and do not entertain unet
|
|||||||
Be specific and to the point while answering the questions.
|
Be specific and to the point while answering the questions.
|
||||||
|
|
||||||
Before answering,
|
Before answering,
|
||||||
refer to the markdown in the website and check if any keyword matches it else say that you can not answer that question.
|
refer to the markdown in the website and check if any keyword matches it else suggest related keywords or say that you cannot answer that question.
|
||||||
|
|
||||||
Make sure that you are not answering any unethical questions.
|
Make sure that you are not answering any unethical questions.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user