Commit graph

3,897 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
0648e3f2ac Update component descriptions to reflect Playground instead of Interaction Panel 2024-05-02 13:50:01 -03:00
Cristhian Zanforlin Lousa
bbe72887eb
Introducing Versatile IO Components: JSON Viewer, DictionaryIO, and InputListIO (#1822)
In our ongoing commitment to enhancing user experience and streamlining
data interaction, we are thrilled to introduce a trio of powerful IO
components: JSON Viewer, DictionaryIO, and InputListIO. These components
are meticulously crafted to empower developers with seamless data
handling capabilities, enabling efficient processing and visualization
of JSON data structures, dictionaries, and input lists.
2024-05-02 13:47:43 -03:00
Gabriel Luiz Freitas Almeida
e3edc54d64 Refactor get_id_from_search_string function to convert UUID to string in service.py 2024-05-02 12:56:57 -03:00
cristhianzl
1df3fe7ad6 📝 (StringListInput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (StringListOutput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (index.tsx): add InputListComponent to handle StringListInput and StringListOutput components in IOFieldView
📝 (index.tsx): update InputListComponent props to include value, onChange, disabled, and playgroundDisabled
📝 (index.tsx): update IOFieldView to render InputListComponent for StringListInput and StringListOutput components
2024-05-02 11:39:41 -03:00
cristhianzl
aa3ea07c6a merge playground 2024-05-02 10:39:46 -03:00
Gabriel Luiz Freitas Almeida
0dc5cff33e Add id search from search string 2024-05-01 11:41:51 -03:00
cristhianzl
edabb31112 (StringListInput.py): add a new custom component called "StringListInput" to handle string list inputs
 (KeyPairOutput.py): add a new custom component called "KeyPairOutput" to handle dictionary outputs
 (StringListOutput.py): add a new custom component called "StringListOutput" to handle string list outputs
🚀 (constants.ts): add "StringListInput" and "StringListOutput" to the list of supported input and output types
♻️ (index.tsx): refactor IOKeyPairInput component to accept an additional prop "isInputField" and disable input fields if it's false
♻️ (index.tsx): refactor IOFieldView component to handle rendering of "StringListInput" and "StringListOutput" components
2024-04-30 13:33:37 -03:00
cristhianzl
b06501a4c9 (JsonInput.py): add a new component called "JsonInput" to handle JSON input data in the language flow system
 (KeyPairInput.py): add a new component called "KeyPairInput" to handle dictionary input data in the language flow system
 (CSVOutput.py): add a new component called "CSVOutput" to handle CSV output data in the language flow system
 (ImageOutput.py): add a new component called "ImageOutput" to handle image output data in the language flow system
 (JsonOutput.py): add a new component called "JsonOutput" to handle JSON output data in the language flow system
 (PDFOutput.py): add a new component called "PDFOutput" to handle PDF output data in the language flow system
📝 (App.css): update CSS to improve readability and formatting
📝 (parameterComponent/index.tsx): fix a bug where rangeSpec is not properly accessed in the FloatComponent
📝 (cardComponent/index.tsx): update the CollectionCardComponent to include a new button for opening the playground and handle the opening and closing of the IOModal

📝 (codeTabsComponent/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (keypairListComponent/index.tsx): refactor the initialization of the ref variable to handle both empty and non-empty values correctly
📝 (constants.ts): add "JsonInput" and "JsonOutput" to the INPUT_TYPES and OUTPUT_TYPES constants to support JSON input and output components
📝 (editNodeModal/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (ioFieldView/components/JSONInput/index.tsx): add JSONInput component to handle JSON input in the IOFieldView component
📝 (ioFieldView/components/keyPairInput/index.tsx): add keyPairInput component to handle key-value pair input in the IOFieldView component

 (IOFieldView/index.tsx): add useState import to use state hook in functional component
 (IOFieldView/index.tsx): add support for KeyPairInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonOutput component in IOFieldView
📝 (dictAreaModal/index.tsx): add useDarkStore import to use dark mode state in DictAreaModal component
📝 (classes.css): add CSS classes for json-view component in different themes
📝 (types/components/index.ts): remove duplicate InputGlobalComponentType definition
2024-04-29 18:07:53 -03:00
Gabriel Luiz Freitas Almeida
c77d458b25 Refactor retrieve_vertices_order function in chat.py to use Annotated type hinting for data parameter 2024-04-26 16:41:22 -03:00
Gabriel Luiz Freitas Almeida
4317ab35b7 Refactor build_and_cache_graph_from_data function in chat.py to use model_dump() method for graph data 2024-04-25 16:06:14 -03:00
Gabriel Luiz Freitas Almeida
e22a3300cb Refactor get_vertices function to retrieve_vertices_order in chat.py 2024-04-25 13:03:53 -03:00
igorrCarvalho
6d6d1d73db Feat: add File input component 2024-04-24 22:37:20 -03:00
anovazzi1
0054077251 Merge remote-tracking branch 'origin/dev' into playground 2024-04-24 11:11:17 -03:00
Gabriel Luiz Freitas Almeida
fe67f84d56 Update package versions in pyproject.toml files 2024-04-23 23:19:26 -03:00
Gabriel Luiz Freitas Almeida
82926cda65 Update kwargs parameter name in MemoryComponent.py to 'limit' instead of 'n_messages' 2024-04-23 23:13:19 -03:00
Gabriel Luiz Freitas Almeida
19e46de04c
Refactor MemoryComponent class and add ZepMessageReaderComponent (#1771)
* Add BaseMemoryComponent class to langflow.base.memory.memory.py (#1750)

* Add BaseMemoryComponent class to langflow.base.memory.memory.py

* Update MemoryComponent class in langflow.components.helpers.MemoryComponent.py to inherit from BaseMemoryComponent

*  (ZepMessageReader.py): Add ZepMessageReaderComponent to retrieve chat messages from Zep
📝 (ZepMessageWriter.py): Add ZepMessageWriterComponent to add messages to ZepChatMessageHistory

📝 (Langflow Memory Conversation.json): Refactor MemoryComponent class to inherit from BaseMemoryComponent for better code organization and reusability. Move get_messages method to the class level and validate kwargs for correct keys before processing.

* Update WeaviateSearch.py to include index_name parameter in build method

Update ZepMessageWriter.py to include metadata parameter in __init__ method

Update ZepMessageReader.py to include cast function for memory parameter

Update schema.py to include cast function for metadata parameter

Update process.py to include tweaks_dict variable and use it in apply_tweaks method

Update Weaviate.py to include index_name parameter in build method and raise ValueError if index_name is not provided

* Update process.py to include tweaks_dict variable and use it in apply_tweaks method

*  (ZepMessageReader.py): Update ZepMessageReaderComponent build method to handle optional url and api_key parameters and improve error handling for zep-python package import
📝 (ZepMessageWriter.py): Refactor ZepMessageWriterComponent to use 'text' instead of 'message' for consistency and update add_message method to reflect this change. Add 'input_value' configuration option for specifying the record to write to Zep. Update build_config method to reflect changes in input parameters. Update add_message method to use 'text' parameter instead of 'message'. Update build method to handle optional url and api_key parameters and improve error handling for zep-python package import.

* Update zep-python package to version 2.0.0rc5

* 📝 (memory.py): update parameter name from 'message' to 'text' for better clarity and consistency
2024-04-23 23:06:54 -03:00
Gabriel Luiz Freitas Almeida
b07b937b20 Update build_and_cache_graph function to handle graph data from database and from input data (#1750)
* Update build_and_cache_graph function to handle graph data from database and from input data

* Update get_vertices endpoint to handle graph data from input

* Update build_vertex function to handle graph data from database

* Update build_vertex function to handle graph data from input

* Update FlowDataRequest schema to include optional viewport field
2024-04-23 20:38:04 -03:00
Alper_Emre
24d5c482f0
Fix DB migration erro with Azure PostgreSQL Password with Langflow v0.6.14 (#1711)
The error caused by @ symbol in postgresql pasword fixed
2024-04-18 11:59:36 -03:00
Gabriel Luiz Freitas Almeida
9c292af183 Update organization name and URLs in configuration files 2024-04-18 11:58:19 -03:00
Gabriel Luiz Freitas Almeida
e0a18e96e4 Update contact email in CODE_OF_CONDUCT.md and pyproject.toml files 2024-04-18 11:55:40 -03:00
Gabriel Luiz Freitas Almeida
1ecf48fdd1 Update package versions in pyproject.toml and poetry.lock files 2024-04-18 11:54:21 -03:00
Gabriel Luiz Freitas Almeida
3ad2919ff3
Fix API not passing input_value to Chat Input (#1749)
* Fix API not returning values when stream is True in a component

Fixes #1744

* Update Graph.from_payload method to include user_id parameter
2024-04-18 11:47:45 -03:00
Phil Miesle
b04caf2fca
Feature/astra retriever (#1741)
enable AstraDB as Retriever
2024-04-18 10:40:36 -03:00
Gabriel Luiz Freitas Almeida
ed84307a50 Update LCModelComponent to include build_status_message method 2024-04-17 18:09:49 -03:00
Gabriel Luiz Freitas Almeida
46291e8fa4 Update gunicorn version to 22.0.0 in pyproject.toml 2024-04-17 00:37:26 -03:00
Gabriel Luiz Freitas Almeida
374508cf18 Update package versions in pyproject.toml and poetry.lock files 2024-04-16 14:03:53 -03:00
Gabriel Luiz Freitas Almeida
42e88b7a23
Add Experimental Agent Component (#1705)
* Update langflow base prompts API utils and add ToolCallingAgentComponent

* Update return type annotations in AzureOpenAIModel.py and ChatLiteLLMModel.py

* Update langchainhub package version to 0.1.15

* Update langflow base prompts API utils and add ToolCallingAgentComponent

* Add AgentComponent to langflow experimental components

* Update prompt variable name to user_prompt in ToolCallingAgentComponent.py

* Update prompt variable name to system_message in AgentComponent.py

* Update system_message variable name in XMLAgentComponent and ToolCallingAgentComponent

* Update prompt variable name to user_prompt in ToolCallingAgentComponent.py
2024-04-16 13:57:05 -03:00
Gabriel Luiz Freitas Almeida
dd7e5a7ab5 Add from_lc_message method to Record class in schema.py 2024-04-16 13:22:31 -03:00
Gabriel Luiz Freitas Almeida
0d75e2905f
Refactor process method to align it with endpoint logic (#1700)
* Refactor Graph class to improve parallel processing in base.py

* Fix type hint for run_id parameter in set_run_id method
2024-04-15 08:59:27 -03:00
Gabriel Luiz Freitas Almeida
05104117ba
Update nullable attribute for created_at field in variable table (#1697)
* Update nullable attribute for created_at field in variable table

* Update package versions in pyproject.toml and poetry.lock files
2024-04-13 11:23:42 -03:00
Gabriel Luiz Freitas Almeida
cc14c51238
Update created_at field in api_key/crud.py and api_key/model.py (#1698)
* Update created_at field in api_key/crud.py and api_key/model.py
2024-04-13 11:21:24 -03:00
Gabriel Luiz Freitas Almeida
23f374db71
Fix migration problem (#1694)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image

* Fix decryption error handling in get_user_store_api_key function

* Add error logging to JavaScriptMIMETypeMiddleware in main.py

* Fix error logging in main.py

* Fix error logging and datetime type in database migrations

* Update openai component

* Update package versions for boto3 and botocore
2024-04-12 18:36:54 -03:00
Eric Dodémont
7022c81550
Update OpenAIModel.py: new model (#1689)
Add gpt-4-turbo-2024-04-09 new OpenAI model.
2024-04-12 17:09:49 -03:00
Gabriel Luiz Freitas Almeida
06ea4529df
Check Store API key (#1693)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image

* Fix decryption error handling in get_user_store_api_key function

* Add error logging to JavaScriptMIMETypeMiddleware in main.py

* Merge
2024-04-12 17:08:41 -03:00
Gabriel Luiz Freitas Almeida
1a021321a9
Update Dockerfiles, main.py, constants.py, and package versions (#1691)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image
2024-04-12 16:39:22 -03:00
Gabriel Luiz Freitas Almeida
efda40d634 Update package versions in pyproject.toml and poetry.lock files 2024-04-12 15:10:08 -03:00
Gabriel Luiz Freitas Almeida
704da1d4de Update log file handling and error handling in logger.py 2024-04-12 14:40:04 -03:00
Gabriel Luiz Freitas Almeida
6393b87842 Update datetime type for created_at and updated_at fields in apikey and variable tables 2024-04-12 14:01:48 -03:00
Gabriel Luiz Freitas Almeida
17f04d8b78 Update nullable attribute for created_at field in variable table 2024-04-12 12:25:43 -03:00
Gabriel Luiz Freitas Almeida
e73754b391
Update database file path handling and server shutdown message (#1686)
* Update database file path handling in base.py and version.py

* Update server.py to handle SIGINT signal in LangflowUvicornWorker

* Add shutdown message when shutting down Langflow in main.py

* Update datetime type for created_at and updated_at fields in apikey and variable tables

* Update package versions in pyproject.toml and poetry.lock files

* Update package versions in pyproject.toml and poetry.lock files

* Fix import error in base.py

* Refactor database file path handling in base.py

* Update unit test command in python_test.yml
2024-04-11 17:13:00 -03:00
Gabriel Luiz Freitas Almeida
f693fa8f9e Update package versions in pyproject.toml and poetry.lock files 2024-04-11 13:02:07 -03:00
Gabriel Luiz Freitas Almeida
8fa8781a0f
Update langflow base prompts API utils (#1682) 2024-04-11 12:47:31 -03:00
Gabriel Luiz Freitas Almeida
e582535bb0
Update package versions, workflows, LLMChain and Graph sorting (#1674)
* Update package versions in pyproject.toml and poetry.lock files

* Update poetry caching action and workflows

* Update poetry caching action and workflows

* Refactor LLMChainComponent build method in LLMChain.py

* Update poetry install command in Makefile

* Refactor Makefile to remove redundant install_backend targets

* Fix codespell issues in project

* Update package versions and dependencies

* Fix import order in chat_io.spec.ts, headerComponent/index.tsx, and chatMessage/index.tsx

* Update ruff command in Makefile and fix poetry cache reuse in Dockerfile

* Refactor ServiceManager class in manager.py to handle default service factories

* Fix typo in DOWNLOAD_WEBHOOK_URL variable assignment

* Refactor cache_service tests in test_cache_manager.py

* Add pytest-profiling

* Update Makefile to run unit tests with parallel execution

* Refactor ServiceManager class in manager.py to handle default service factories

* Refactor node_name condition in Graph class to use "Listen" instead of "GetNotified"

* Refactor file paths in tests/conftest.py for better readability and maintainability

* Sort vertices in each layer by dependency in Graph class

* Refactor variable declaration in SessionService class to use type hinting

* Refactor make tests command in python_test.yml workflow

* Refactor file paths in tests/conftest.py for better readability and maintainability

* Refactor imports in tests/conftest.py to include sqlmodel.Session and related dependencies

* Refactor file paths in tests/conftest.py to include available files in error message

* Refactor file paths in tests/conftest.py to include available files in error message

* Refactor file paths in tests/conftest.py to fix typo in BasicChatwithPromptAndHistory.json
2024-04-11 12:20:56 -03:00
Gabriel Luiz Freitas Almeida
836ac08d80
Update datetime handling in ApiKey and Variable models (#1673)
* Update datetime handling in ApiKey and Variable models

* Refactor test_login_successful function in test_login.py

* Fix nullable attribute for created_at and updated_at fields in Variable model
2024-04-10 23:04:10 -03:00
Gabriel Luiz Freitas Almeida
4ee9b72634
Fix various issues and refactor code (#1671)
* Update setup_mode to "Sync" in AstraDBVectorStoreComponent

* Fix search_kwargs default value in PineconeSearch and QdrantSearch components

* Update Playwright test and ChatMessage component in chat_io.spec.ts and chatMessage/index.tsx

* Refactor test_pickle_each_vertex function in test_graph.py

* Refactor database service to improve performance and readability
2024-04-10 22:40:21 -03:00
Gabriel Luiz Freitas Almeida
3478d4c05e
Update setup_mode to "Sync" in AstraDBVectorStoreComponent (#1670)
* Update setup_mode to "Sync" in AstraDBVectorStoreComponent

* Fix search_kwargs default value in PineconeSearch and QdrantSearch components
2024-04-10 21:09:26 -03:00
Gabriel Luiz Freitas Almeida
5e5ae3911d
Fix nullable attribute for created_at and updated_at fields in Variable model (#1669)
* Fix nullable attribute for created_at field in variable table

* Update package versions in pyproject.toml and poetry.lock files

* Fix nullable attribute for created_at and updated_at fields in Variable model

* Refactor VariableService class to use VariableCreate model for creating variables
2024-04-10 20:56:46 -03:00
Gabriel Luiz Freitas Almeida
cc4d8c8326 Update package versions in pyproject.toml and poetry.lock files 2024-04-10 20:55:50 -03:00
Gabriel Luiz Freitas Almeida
305ee02981 Update maintainers list in pyproject.toml 2024-04-10 17:34:38 -03:00
Gabriel Luiz Freitas Almeida
e9faba0f47 Update package versions in pyproject.toml and poetry.lock files 2024-04-10 17:18:48 -03:00