Commit graph

414 commits

Author SHA1 Message Date
phact
acdfd3c8ca os diag 2025-09-08 20:52:52 -04:00
Gabriel Luiz Freitas Almeida
8ae543ac69 Refactor file path handling in LangflowFileService to improve clarity and consistency
This commit updates the LangflowFileService class by changing the key for file paths in the tweaks dictionary from "path" to "file_path". This modification enhances code clarity and aligns with best practices for maintaining robust async code. Additionally, it simplifies the logging statement for better readability while preserving the functionality related to JWT token handling.
2025-09-08 20:11:21 -03:00
Gabriel Luiz Freitas Almeida
12cbd63dbf Refactor SearchService to improve data retrieval from search results
This commit updates the SearchService class to utilize the `get` method for safely accessing fields in the search results. This change enhances the robustness of the code by preventing potential KeyErrors and aligns with best practices for building maintainable async code. Additionally, it simplifies the data extraction process from the search results, improving overall code clarity.
2025-09-08 20:10:48 -03:00
Gabriel Luiz Freitas Almeida
a0151dfaff Refactor ingestion flow JSON to enhance edge connections and update component settings
This commit refines the ingestion flow JSON by reintroducing an edge connection between the File and SplitText nodes, ensuring proper data flow. It also updates the last updated timestamp and modifies the selection state of a node, contributing to improved functionality and user experience. These changes align with best practices for async development and enhance the overall robustness of the ingestion flow.
2025-09-08 20:10:34 -03:00
Gabriel Luiz Freitas Almeida
ea069bd4de Update ingestion flow JSON with new input options and authentication settings
This commit modifies the ingestion flow configuration by adding a new input option for file paths and updating the last updated timestamp. It also refines the OpenSearchHybridComponent to enhance authentication handling and input configurations. These changes improve the functionality and user experience of the ingestion flow, aligning with best practices for async development.
2025-09-08 19:47:27 -03:00
Gabriel Luiz Freitas Almeida
550930e6c1 Update ingestion flow configuration and component settings
This commit updates the ingestion flow JSON configuration, including modifications to the last updated timestamps, dimensions of UI components, and selected output types. Additionally, it enhances the OpenSearchHybridComponent by refining input options and ensuring proper handling of authentication settings. These changes improve the overall functionality and user experience of the ingestion flow.
2025-09-08 19:17:33 -03:00
Gabriel Luiz Freitas Almeida
1a1911a34e Update Makefile for improved command execution and formatting
This commit modifies the Makefile to ensure consistent command execution by changing the directory context for the backend startup command. Additionally, it corrects formatting in the output messages for better readability. These changes contribute to a more robust development environment.
2025-09-08 18:57:33 -03:00
Gabriel Luiz Freitas Almeida
762152934e Add async method to retrieve connector by ID in LangflowConnectorService
This commit introduces the _get_connector method in the LangflowConnectorService class, providing an asynchronous way to retrieve a connector by its connection ID. This addition enhances the service's functionality and aligns with the ongoing improvements in asynchronous processing and code maintainability.
2025-09-08 18:06:18 -03:00
Gabriel Luiz Freitas Almeida
69c064763a Add environment and build file exclusions to .dockerignore
This commit expands the .dockerignore file to include various environment files, authentication files, dependency directories, Python cache files, build outputs, development files, logs, OS-specific files, and temporary files. These additions enhance the Docker build process by preventing unnecessary files from being included, thereby improving efficiency and maintainability in line with best practices for async development.
2025-09-08 18:06:18 -03:00
Gabriel Luiz Freitas Almeida
63bf4cad0f Refactor settings page to streamline state updates and remove unused interfaces
This commit simplifies the state update logic in the KnowledgeSourcesPage component by replacing multiple conditional assignments with concise if statements. Additionally, it removes unused GoogleDriveFile and OneDriveFile interfaces, enhancing code clarity and maintainability in line with best practices for async development.
2025-09-08 18:06:18 -03:00
phact
f3616db4cd FLOW_ID 2025-09-08 16:33:06 -04:00
Sebastián Estévez
084502c0b6
Merge branch 'main' into ingestion-flow 2025-09-08 16:29:13 -04:00
phact
5a5541ce00 0.1.1 2025-09-08 16:22:29 -04:00
phact
3c6c8f999b compose versions env vars 2025-09-08 16:22:20 -04:00
phact
a4e271cb37 Merge branch 'main' of github.com:phact/gendb 2025-09-08 16:12:43 -04:00
Sebastián Estévez
3815332818
Merge pull request #25 from langflow-ai/feat-connection-cleanup
feat: Cleanup duplicate connections
2025-09-08 16:12:20 -04:00
phact
73f039afb5 logging 2025-09-08 16:07:06 -04:00
Eric Hare
617615532d
Update connection_manager.py 2025-09-08 13:00:00 -07:00
Eric Hare
cff28fc4f9
feat: Cleanup duplicate connections 2025-09-08 12:56:38 -07:00
Gabriel Luiz Freitas Almeida
6d0a94e4b4 Refactor connector service initialization to use LangflowConnectorService
This commit updates the service initialization in main.py to replace the existing ConnectorService with LangflowConnectorService. This change enhances the management of connector documents by leveraging the new service's capabilities, aligning with the ongoing improvements in asynchronous processing and code maintainability.
2025-09-08 16:42:07 -03:00
Gabriel Luiz Freitas Almeida
beee47068c Add LangflowConnectorService for managing connector documents
This commit introduces the LangflowConnectorService class, which facilitates the management and processing of connector documents using the Langflow service. It includes methods for initializing the service, retrieving connectors, processing documents, and syncing files. The implementation emphasizes asynchronous processing and robust error handling, enhancing the overall maintainability and documentation of the codebase.
2025-09-08 16:40:24 -03:00
Gabriel Luiz Freitas Almeida
542082e5bf Add LangflowConnectorFileProcessor for handling connector file uploads
This commit introduces the LangflowConnectorFileProcessor class, which processes connector file uploads using the Langflow service. It includes initialization parameters for user and connection details, and implements the process_item method to handle file processing asynchronously. Additionally, it cleans up the existing ConnectorFileProcessor by removing unused imports and streamlining file info retrieval. These changes enhance the code's robustness and maintainability in line with async development practices.
2025-09-08 16:40:06 -03:00
Gabriel Luiz Freitas Almeida
327b435814 fix imports in task_service 2025-09-08 16:39:41 -03:00
Sebastián Estévez
982726d904
Merge pull request #23 from langflow-ai/feat/nudges
feat: add nudges generation and display
2025-09-08 15:37:59 -04:00
Lucas Oliveira
192693d82d fixed agent.py extra comma 2025-09-08 16:36:03 -03:00
Lucas Oliveira
d6bf6444e5 Merge remote-tracking branch 'origin/main' into feat/nudges 2025-09-08 16:25:59 -03:00
Gabriel Luiz Freitas Almeida
1df2594698 Update ingestion flow JSON configuration
This commit modifies the ingestion flow JSON by updating the last_updated timestamp, removing the obsolete File Path input field, and adjusting the file_path array to be empty. Additionally, it corrects the height measurement of a UI component and changes the selected state of a node. These updates contribute to a cleaner and more efficient configuration, aligning with best practices for async code development.
2025-09-08 15:10:00 -03:00
Gabriel Luiz Freitas Almeida
b3dcac0cde Refactor environment configuration in EnvManager
This commit updates the EnvConfig class by renaming the flow ID variables to LANGFLOW_CHAT_FLOW_ID and LANGFLOW_INGEST_FLOW_ID for better clarity. It also modifies the environment variable writing logic to reflect these changes. Additionally, the import statements have been reorganized for improved readability. These updates contribute to a more robust and well-documented codebase.
2025-09-08 15:10:00 -03:00
Gabriel Luiz Freitas Almeida
e144f8f0ef update FLOW_ID variable 2025-09-08 15:10:00 -03:00
Eric Hare
b9da6437f8
Properly set the project root for the gdrive token 2025-09-08 11:08:45 -07:00
Edwin Jose
4f72b88fcc
Merge branch 'main' into ingestion-flow 2025-09-08 13:43:44 -04:00
Edwin Jose
1096ef4cd0
Merge pull request #24 from langflow-ai/eslint-fix 2025-09-08 13:43:11 -04:00
Gabriel Luiz Freitas Almeida
d5166f4314 fix langflow file service change 2025-09-08 12:59:28 -03:00
Lucas Oliveira
33cd325fc9 Added deps to package.json 2025-09-08 12:36:04 -03:00
Gabriel Luiz Freitas Almeida
cb3ceceafe Fix import statement for logging configuration in warm_up_docling.py 2025-09-08 12:26:51 -03:00
Gabriel Luiz Freitas Almeida
503fa92788
Merge branch 'main' into ingestion-flow 2025-09-08 12:19:52 -03:00
Edwin Jose
5172cf9069 eslint fix 2025-09-08 10:35:33 -04:00
phact
8dc77298be logging 2025-09-08 10:30:18 -04:00
Edwin Jose
8c142f89b7
Merge pull request #20 from langflow-ai/langflow-dockerfile 2025-09-08 10:09:02 -04:00
phact
9f7c506cce log error when INGEST_FLOW_ID is not configured 2025-09-08 09:58:28 -04:00
Gabriel Luiz Freitas Almeida
20a5648b3d Refactor ingestion flow configuration for OpenSearch hybrid component
This commit updates the ingestion flow JSON configuration to enhance the OpenSearch hybrid component. Key changes include renaming the component to OpenSearchHybrid, updating input fields for better clarity, and improving the handling of JWT authentication. Additionally, the commit introduces new parameters for search configuration, such as engine selection and filter expressions, while ensuring the overall structure adheres to robust async coding practices and well-documented code.
2025-09-08 09:14:03 -03:00
Gabriel Luiz Freitas Almeida
18e1874c88 Enhance logging and JWT token handling in LangflowFileService
This commit refactors the LangflowFileService to utilize a centralized logger instead of instance-specific logging. It also improves the handling of the JWT token in the run_ingestion_flow method, ensuring it is correctly passed to downstream services and logged appropriately. These changes enhance code readability and maintainability while adhering to robust async coding practices.
2025-09-08 08:44:05 -03: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
Gabriel Luiz Freitas Almeida
7b5589653a Add handling for Content-Type header in AppClients
This commit modifies the AppClients class to remove the Content-Type header if it is explicitly set to None, particularly for file uploads. This change enhances the robustness of the async code by ensuring proper header management during API requests, aligning with the project's focus on well-documented and maintainable code.
2025-09-08 08:43:32 -03:00
Gabriel Luiz Freitas Almeida
2543b2103b fix import statement 2025-09-08 08:42:46 -03:00
Edwin Jose
1c1bd8be59 Create Dockerfile.langflow 2025-09-07 19:20:33 -04:00
phact
caa6a701d6 remove active connection duplicate test filter 2025-09-06 00:46:35 -04:00
phact
174823f5d4 spawn fix 2025-09-06 00:45:10 -04:00
Sebastián Estévez
be77cac353
Merge pull request #19 from langflow-ai/cz/fix-tool-call-tag
Fix: Persist Function Call Data Across Conversation Switching
2025-09-06 00:03:19 -04:00
Sebastián Estévez
2b662482a0
Merge branch 'main' into cz/fix-tool-call-tag 2025-09-05 23:57:54 -04:00