(feat:ingestion) store filepath from now

This commit is contained in:
ManishMadan2882
2025-06-11 16:00:09 +05:30
parent 041d600e45
commit 8b3e960be0
2 changed files with 5 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ def upload_index_files():
type = secure_filename(request.form["type"])
remote_data = request.form["remote_data"] if "remote_data" in request.form else None
sync_frequency = secure_filename(request.form["sync_frequency"]) if "sync_frequency" in request.form else None
original_file_path = request.form.get("original_file_path")
storage = StorageCreator.get_storage()
index_base_path = f"indexes/{id}"
@@ -85,6 +87,7 @@ def upload_index_files():
"retriever": retriever,
"remote_data": remote_data,
"sync_frequency": sync_frequency,
"file_path": original_file_path,
}
},
)
@@ -102,6 +105,7 @@ def upload_index_files():
"retriever": retriever,
"remote_data": remote_data,
"sync_frequency": sync_frequency,
"file_path": original_file_path, ## relative path to the original file, for the storage referrence
}
)
return {"status": "ok"}