rag improvements

This commit is contained in:
2025-09-23 15:26:54 +02:00
parent 354b43494d
commit f8d127ff42
30 changed files with 817 additions and 2428 deletions

View File

@@ -755,10 +755,11 @@ class RAGService:
# Process with RAG module
try:
# Pass file_path in metadata so JSONL indexing can reopen the source file
processed_doc = await rag_module.process_document(
file_content,
document.original_filename,
{}
file_content,
document.original_filename,
{"file_path": document.file_path}
)
# Success case - update document with processed content
@@ -873,4 +874,4 @@ class RAGService:
except Exception as e:
logger.error(f"Error reprocessing document {document_id}: {e}")
return False
return False