diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-28 10:15:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 10:15:43 +0800 |
| commit | c5b2be641acd43375f92fa04fb679911840c1c56 (patch) | |
| tree | 1654b09766b87c41e707da7fcf75dbc6b1b2c7c9 /src/config | |
| parent | 49b61129c95a3528eaf25dabcb55825b5ed7be72 (diff) | |
| download | aichat-c5b2be641acd43375f92fa04fb679911840c1c56.tar.gz | |
feat: ask for confirmation when some rag documents fail to load (#760)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/agent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
