Commit graph

11 commits

Author SHA1 Message Date
phact
97a17c77d7 filename fix 2025-09-09 12:57:28 -04:00
Edwin Jose
8dff280930 add langflow routers with langflow file processor 2025-09-09 03:20:21 -04:00
Edwin Jose
faac0c912e Merge branch 'main' into langflow-ingestion-modes 2025-09-09 02:42:52 -04:00
Gabriel Luiz Freitas Almeida
0539f7751a Enhance ingestion flow by adding user metadata and improving context handling
This commit updates the ingestion flow to include user metadata such as owner ID, name, and email, enhancing the context for downstream services. It also refines the handling of tweaks in the LangflowFileService to incorporate this metadata, ensuring better tracking and clarity in the ingestion process. These changes align with best practices for robust async development and improve the overall functionality of the ingestion flow.
2025-09-08 23:49:46 -03:00
Edwin Jose
5dd9959dd0
Merge branch 'ingestion-flow' into langflow-ingestion-modes 2025-09-08 10:38:31 -04:00
Gabriel Luiz Freitas Almeida
deb39a6e5b Refactor user file upload and ingestion flow to streamline JWT token handling
This commit simplifies the handling of the JWT token in the upload_user_file and run_ingestion functions by removing unnecessary lines and ensuring the token is passed correctly to downstream services. This change enhances code readability and maintains the focus on robust async coding practices and well-documented code.
2025-09-08 08:43:53 -03:00
Edwin Jose
6c99c1b61d Implement unified upload and ingest endpoint in Langflow
This commit introduces a new combined endpoint for uploading files and running ingestion in Langflow. The frontend component is updated to utilize this endpoint, streamlining the process by eliminating separate upload and ingestion calls. The response structure is adjusted to include deletion status and other relevant information, enhancing error handling and logging practices throughout the codebase.
2025-09-08 02:03:02 -04:00
Gabriel Luiz Freitas Almeida
69834ac4ac Refactor error logging in upload_user_file function
This commit replaces the print statement for error traceback with a structured logging approach using the logger. This change enhances error visibility and aligns with best practices for robust and well-documented async code.
2025-09-04 18:32:38 -03:00
Gabriel Luiz Freitas Almeida
9494e99808 Set tweaks to settings passed from the UI 2025-09-04 18:32:29 -03:00
Gabriel Luiz Freitas Almeida
c82c74d76c Enhance upload_user_file endpoint with improved logging and error handling
This commit adds detailed debug and error logging to the upload_user_file endpoint, facilitating better tracking of file upload processes and issues. It includes checks for the presence of a file and JWT token, and captures exceptions with traceback information for enhanced debugging. These changes contribute to a more robust and well-documented codebase.
2025-09-04 10:23:45 -03:00
Gabriel Luiz Freitas Almeida
50f1663374 Add API endpoints for file upload, ingestion, and deletion
This commit introduces three asynchronous API endpoints in langflow_files.py: upload_user_file, run_ingestion, and delete_user_files. Each endpoint handles file operations with appropriate error handling and returns JSON responses. The implementation ensures robust interaction with the LangflowFileService for managing user files.
2025-09-02 23:10:28 -03:00