Use absolute paths when add-src

This commit is contained in:
Yiorgis Gozadinos 2025-08-08 14:34:13 +02:00
parent 4efb84e9a5
commit 7906b1b026
No known key found for this signature in database

View file

@ -110,7 +110,7 @@ class HaikuRAG:
if not source_path.exists():
raise ValueError(f"File does not exist: {source_path}")
uri = source_path.as_uri()
uri = source_path.absolute().as_uri()
md5_hash = hashlib.md5(source_path.read_bytes()).hexdigest()
# Check if document already exists