From 04b0c67848032b03ae2e47e14e3f8e73b8831232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Urban?= Date: Tue, 27 Feb 2024 20:34:31 +0100 Subject: [PATCH] fix: line length in prompt --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d047b1d..21a7a0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,7 +84,8 @@ fn init_ollama_client(host: &str, port: u16, secure_endpoint: bool) -> Ollama { // Refactor the main process into a function for better readability async fn process_documents(client: &Client, ollama: &Ollama, model: &str, base_url: &str) -> Result<(), Box> { - let prompt_base= env::var("BASE_PROMPT").unwrap_or_else(|_| "Please extract metadata from the provided document and return it in JSON format.\ + let prompt_base= env::var("BASE_PROMPT").unwrap_or_else(|_| "Please extract metadata\ + from the provided document and return it in JSON format.\ The fields I need are:\ title,topic,sender,recipient,urgency(with value either n/a or low or medium or high),\ date_received,category.\