From c5b2be641acd43375f92fa04fb679911840c1c56 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 28 Jul 2024 10:15:43 +0800 Subject: feat: ask for confirmation when some rag documents fail to load (#760) --- src/config/agent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config/agent.rs') diff --git a/src/config/agent.rs b/src/config/agent.rs index 5416586..c09c8a9 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -68,7 +68,7 @@ impl Agent { println!("The agent has the documents, initializing RAG..."); let mut document_paths = vec![]; for path in &definition.documents { - if Rag::is_url_path(path) { + if is_url(path) { document_paths.push(path.to_string()); } else { let new_path = safe_join_path(&functions_dir, path) -- cgit v1.2.3