From 44aac171b79835048ae09150d392a683930077e1 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 29 Jul 2024 17:21:52 +0800 Subject: fix: unable to rebuild agent rag (#763) --- src/rag/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rag/mod.rs') diff --git a/src/rag/mod.rs b/src/rag/mod.rs index 184f51b..266a859 100644 --- a/src/rag/mod.rs +++ b/src/rag/mod.rs @@ -79,7 +79,7 @@ impl Rag { } pub fn load(config: &GlobalConfig, name: &str, path: &Path) -> Result { - let err = || format!("Failed to load rag '{name}'"); + let err = || format!("Failed to load rag '{name}' at '{}'", path.display()); let file = std::fs::File::open(path).with_context(err)?; let reader = BufReader::new(file); let data: RagData = bincode::deserialize_from(reader).with_context(err)?; -- cgit v1.2.3