summaryrefslogtreecommitdiffstats
path: root/src/rag/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-04 19:44:11 +0800
committerGitHub <noreply@github.com>2024-11-04 19:44:11 +0800
commit9fa3d8cd134571b6a16fb1b328bed3c025742576 (patch)
tree4af688326e2ac755c404bcb25ad11fdaaaace3b5 /src/rag/mod.rs
parent6b77890ec400090caa5d9fa3bffee0db91c9adfc (diff)
downloadaichat-9fa3d8cd134571b6a16fb1b328bed3c025742576.tar.gz
refactor: save RAG document path as an absolute path (#965)
Diffstat (limited to 'src/rag/mod.rs')
-rw-r--r--src/rag/mod.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rag/mod.rs b/src/rag/mod.rs
index 5bb4ea4..e490884 100644
--- a/src/rag/mod.rs
+++ b/src/rag/mod.rs
@@ -15,7 +15,6 @@ use hnsw_rs::prelude::*;
use indexmap::{IndexMap, IndexSet};
use inquire::{required, validator::Validation, Confirm, Select, Text};
use parking_lot::RwLock;
-use path_absolutize::Absolutize;
use serde::{Deserialize, Serialize};
use serde_json::json;
use std::{collections::HashMap, env, fmt::Debug, fs, hash::Hash, path::Path, time::Duration};