mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-17 07:24:34 +01:00
rag improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user