diff --git a/src/http/handle_req.rs b/src/http/handle_req.rs index 7e513ac..b179790 100644 --- a/src/http/handle_req.rs +++ b/src/http/handle_req.rs @@ -15,7 +15,11 @@ pub async fn handle_request( let body = Question::process(&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() .header("content-type", "application/json") diff --git a/src/margdarshak/helper_md/query.md b/src/margdarshak/helper_md/query.md index 56f9c71..2328831 100644 --- a/src/margdarshak/helper_md/query.md +++ b/src/margdarshak/helper_md/query.md @@ -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. 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.