Commit graph

280 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
2fbb8d8430 Implement async fetching of ingestion flow configuration
This commit adds functionality to retrieve and set ingestion-specific defaults from the Langflow API based on the flow configuration. It includes error handling for the API call and updates the settings with values for chunk size, chunk overlap, separator, and embedding model based on the flow data. This enhancement improves the flexibility and robustness of the ingestion process.
2025-09-04 18:31:38 -03:00
Gabriel Luiz Freitas Almeida
ec5092a54a Add ingestion flow for OpenSearch integration
This commit introduces a new JSON configuration file for the OpenSearch ingestion flow, detailing the data processing pipeline. The flow includes components for splitting text, generating embeddings, and ingesting data into OpenSearch, enhancing the capabilities for Retrieval Augmented Generation (RAG) tasks. The configuration is designed to support various input types and provides detailed metadata for each component, ensuring robust and well-documented integration.
2025-09-04 18:03:16 -03:00
Gabriel Luiz Freitas Almeida
c4185bb33f Merge branch 'main' into ingestion-flow 2025-09-04 17:59:43 -03:00
phact
d5fd34edf7 fix no-auth owner 2025-09-04 15:36:22 -04:00
Sebastián Estévez
d5dda4ce2e
Merge pull request #14 from langflow-ai/tui
Tui improvements
2025-09-04 13:40:54 -04:00
phact
956d7582eb tui fixes 2025-09-04 13:40:22 -04:00
Mike Fortman
cf02238671
Merge pull request #12 from langflow-ai/iconfix
update favicon
2025-09-04 12:08:05 -05:00
Mike Fortman
727bcea952 update favicon 2025-09-04 12:06:57 -05:00
phact
214877e9ff btn fix 2025-09-04 12:02:35 -04:00
phact
5f84acb996 tui podman fixes, etc. 2025-09-04 11:45:39 -04:00
Gabriel Luiz Freitas Almeida
4bd2bd7765 Merge branch 'main' into ingestion-flow 2025-09-04 11:46:33 -03:00
Gabriel Luiz Freitas Almeida
e4603706fe Update Docker Compose files to replace FLOW_ID with LANGFLOW_CHAT_FLOW_ID
This commit modifies both docker-compose.yml and docker-compose-cpu.yml to update the environment variable from FLOW_ID to LANGFLOW_CHAT_FLOW_ID, ensuring consistency across configurations. These changes contribute to a more robust and well-documented codebase.
2025-09-04 10:27:08 -03:00
Gabriel Luiz Freitas Almeida
2bb74d89bb Implement file upload, ingestion, and deletion flow in KnowledgeDropdown component
This commit enhances the KnowledgeDropdown component by integrating a complete file handling process that includes uploading files to Langflow, running an ingestion flow, and deleting the uploaded files. It introduces error handling for each step and dispatches appropriate events to notify the UI of the upload and ingestion results. These changes improve the robustness and maintainability of the component, contributing to a well-documented codebase.
2025-09-04 10:26:27 -03:00
Gabriel Luiz Freitas Almeida
3118e54b69 Add ingest flow handling and UI updates in KnowledgeSourcesPage
This commit introduces state management for ingest flow IDs and corresponding edit URLs in the KnowledgeSourcesPage component. It enhances the user interface by adding a new section for file ingestion, allowing users to customize their file processing pipeline. The changes improve the overall functionality and maintainability of the settings page, contributing to a more robust and well-documented codebase.
2025-09-04 10:24:11 -03:00
Gabriel Luiz Freitas Almeida
83438a7c93 Refactor settings.py to enhance settings retrieval and improve flow ID handling
This commit updates the settings retrieval function to include new flow IDs for chat and ingestion, replacing the deprecated FLOW_ID. It also improves the logic for exposing edit URLs based on the availability of public URLs, contributing to a more robust and well-documented codebase.
2025-09-04 10:23:54 -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
d77ebb5f37 update FLOW_ID to LANGFLOW_CHAT_FLOW_ID 2025-09-04 10:23:34 -03:00
Gabriel Luiz Freitas Almeida
e1d58c7421 Implement backwards compatibility for flow ID handling and enhance API key generation process
This commit introduces backwards compatibility for the flow ID by allowing the use of the deprecated FLOW_ID environment variable while issuing deprecation warnings. Additionally, the API key generation process has been improved with validation checks for cached keys and enhanced error handling. The Langflow client initialization has been updated to ensure proper handling of environment variables, contributing to a more robust and well-documented codebase.
2025-09-04 10:23:10 -03:00
Gabriel Luiz Freitas Almeida
45e9c60af1 Enhance LangflowFileService with API key management and v2 endpoint support
This commit refactors the LangflowFileService to include asynchronous API key retrieval and updates the file upload and deletion methods to use the new v2 endpoints. The flow ID constant has been renamed for clarity, and additional logging has been added for better debugging and error handling. The payload structure for the ingestion flow has also been modified to improve functionality and maintainability.
2025-09-04 10:21:35 -03:00
Gabriel Luiz Freitas Almeida
8f69eab5c9 Update Docker Compose files to include OPENSEARCH_PASSWORD in environment variables
This commit modifies both docker-compose.yml and docker-compose-cpu.yml to add OPENSEARCH_PASSWORD to the LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT. Additionally, unnecessary whitespace has been removed for improved readability.
2025-09-04 08:59:54 -03:00
Gabriel Luiz Freitas Almeida
8354e24591 Add development Makefile with comprehensive commands 2025-09-04 08:59:34 -03:00
Gabriel Luiz Freitas Almeida
531ca7cd49 Refactor TaskService for improved readability and maintainability
This commit enhances the TaskService class by reorganizing import statements, updating type hints to use `dict` instead of `Dict`, and improving the formatting of method definitions for better clarity. Additionally, minor adjustments were made to comments and error handling, contributing to a more robust and well-documented codebase.
2025-09-04 08:44:00 -03:00
phact
cad271350b langflow auth env vars in tui 2025-09-03 23:03:05 -04:00
phact
650d4c1e59 langflow env vars 2025-09-03 22:52:17 -04:00
phact
53b7fb27d2 images list 2025-09-03 22:29:00 -04:00
phact
6a642902d6 chown 2025-09-03 22:22:20 -04:00
phact
0f2502bed6 chown 2025-09-03 22:09:01 -04:00
phact
fabfc6f407 speed up ci 2025-09-03 21:59:28 -04:00
phact
26b353f034 fix: open search pw hash bug 2025-09-03 21:27:45 -04:00
phact
a52a842df9 centralized logging 2025-09-03 15:57:35 -04:00
phact
68fd7649e6 update yaml 2025-09-03 15:56:11 -04:00
phact
5e04580493 fix compose yaml 2025-09-03 15:54:17 -04:00
phact
25a45af581 tui v0 2025-09-03 15:31:14 -04:00
phact
d070229566 remove langflow secret key because it's optional 2025-09-03 12:24:39 -04:00
phact
1b4dbe66bc os pw hash on startup 2025-09-03 10:33:20 -04:00
Gabriel Luiz Freitas Almeida
4be48270b7 Refactor main.py for improved organization and clarity
This commit reorganizes the import statements in main.py, enhancing the structure and readability of the code. It also includes minor formatting adjustments for consistency. The changes contribute to a cleaner codebase, facilitating easier maintenance and future development.
2025-09-03 10:36:54 -03:00
Gabriel Luiz Freitas Almeida
a10b35f631 Add LangflowFileService integration and new API endpoints in main.py
This commit integrates the LangflowFileService into main.py, enabling the management of user files through new asynchronous API endpoints for file upload, ingestion, and deletion. The changes enhance the application's functionality and maintainability by providing structured access to Langflow file operations, while ensuring proper authentication and session management for each endpoint.
2025-09-03 10:36:46 -03:00
phact
9074bda6ed ruff 2025-09-03 09:17:30 -04:00
pushkala-datastax
80e0266301
Update build-multiarch.yml
self-hosted
2025-09-02 19:53:44 -07:00
Gabriel Luiz Freitas Almeida
31cab2e6d2 Reorganize import statements in settings.py for improved clarity
This commit refactors the import statements in settings.py, enhancing the organization and readability of the code. The changes include consolidating and reordering imports, which contributes to a cleaner and more maintainable codebase.
2025-09-02 23:19:15 -03:00
Gabriel Luiz Freitas Almeida
003cb1a443 Refactor imports and enhance service organization in main.py
This commit reorganizes the import statements in main.py for better clarity and structure. It consolidates API endpoint imports and service imports, ensuring a cleaner and more maintainable codebase. Additionally, it updates the print statement for connection loading to improve logging consistency.
2025-09-02 23:10:37 -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
Gabriel Luiz Freitas Almeida
f0744b153d Add LangflowFileService for file upload and ingestion flow
This commit introduces the LangflowFileService class, which provides methods for uploading user files, deleting user files, and triggering an ingestion flow using the Langflow Files API. The service is designed to handle asynchronous operations and includes error handling for API requests. Documentation for each method is included to ensure clarity on usage.
2025-09-02 23:10:20 -03:00
phact
34a1a8d135 empty keys directory 2025-09-02 17:12:21 -04:00
phact
e810aef588 Merge branch 'main' of github.com:phact/gendb 2025-09-02 10:50:35 -04:00
phact
1b14d6c8e5 no auth mode 2025-09-02 10:50:20 -04:00
Sebastián Estévez
c2167ed579
Update build-multiarch.yml 2025-08-30 11:22:34 -04:00
Sebastián Estévez
851535aa0c
Update build-multiarch.yml 2025-08-30 10:57:58 -04:00
Sebastián Estévez
bc9746bf7d
Update build-multiarch.yml 2025-08-30 10:54:20 -04:00
Sebastián Estévez
85d527f757
Merge pull request #4 from langflow-ai/copilot/fix-bb2831f2-f336-43cc-9076-bf11e5cd5e1c
Fix TypeScript build errors in frontend navigation component
2025-08-30 09:54:42 -04:00