Commit graph

9,484 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
2bc6d99ad4 Update Poetry version to 1.8.2 2024-03-26 23:17:51 -03:00
Gabriel Luiz Freitas Almeida
56a485ef56 Update packages include path in pyproject.toml 2024-03-26 23:15:36 -03:00
Gabriel Luiz Freitas Almeida
b603d73c62 Add version module and update imports 2024-03-26 23:10:22 -03:00
Gabriel Luiz Freitas Almeida
73a23ca096 Add new files and modify existing files 2024-03-26 22:50:46 -03:00
Gabriel Luiz Freitas Almeida
827d6befec Add new langflow helper functions and remove base model component 2024-03-26 22:33:56 -03:00
Gabriel Luiz Freitas Almeida
d54e4504f9 Refactor code and fix bugs 2024-03-26 21:48:48 -03:00
Gabriel Luiz Freitas Almeida
257f802277 Update function signature and import statements 2024-03-26 21:28:40 -03:00
Gabriel Luiz Freitas Almeida
a92dcaf37d Update agent.py and experimental components 2024-03-26 21:24:33 -03:00
Gabriel Luiz Freitas Almeida
16e91a00de Update mypy configuration to include namespace packages 2024-03-26 21:24:17 -03:00
Gabriel Luiz Freitas Almeida
532615533a Add VariableService and related files 2024-03-26 20:40:03 -03:00
Gabriel Luiz Freitas Almeida
00322edda2 Refactor Makefile to include conditional statements for environment variables 2024-03-26 20:35:31 -03:00
Gabriel Luiz Freitas Almeida
0385cfbce1 Add setup_devcontainer target to Makefile 2024-03-26 20:34:36 -03:00
Gabriel Luiz Freitas Almeida
95f5c4421f Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-26 20:33:15 -03:00
Gabriel Luiz Freitas Almeida
70cf01b7f7 Refactor component names in inputs.mdx and add new guide on inputs and outputs 2024-03-26 20:23:04 -03:00
Lucas Oliveira
ff8c3d7a06 Fixed input of global variables 2024-03-27 01:18:21 +02:00
Cezar Vasconcelos
638ea4a87c Merge branch 'zustand/io/migration' of https://github.com/logspace-ai/langflow into zustand/io/migration 2024-03-26 21:30:15 +00:00
root
edf4d5053c fix: system message should be the first message to LLM 2024-03-26 21:29:24 +00:00
Gabriel Luiz Freitas Almeida
1e442a005f Add backend dependency installation to Makefile 2024-03-26 17:35:25 -03:00
Gabriel Luiz Freitas Almeida
975340af9e Add conditional logic for environment file in Makefile 2024-03-26 17:30:11 -03:00
Gabriel Luiz Freitas Almeida
8b68f06593 Update OpenAIModelComponent in Langflow Basic Prompting.json 2024-03-26 17:29:00 -03:00
Lucas Oliveira
d123d5b64f Added editNode variable on global variables for inputs 2024-03-26 22:28:42 +02:00
Gabriel Luiz Freitas Almeida
9903c01c4c Update CLI run command to include environment file 2024-03-26 17:20:49 -03:00
Gabriel Luiz Freitas Almeida
92ab5a1619 Update Python version and package dependencies 2024-03-26 17:17:13 -03:00
Gabriel Luiz Freitas Almeida
d8ffcadfe2 Add parallel execution for locking dependencies in Makefile 2024-03-26 17:17:00 -03:00
Lucas Oliveira
1315137ab8 put optional label on type 2024-03-26 22:03:13 +02:00
Lucas Oliveira
ae7d827483 Fixed type to always exist 2024-03-26 21:54:08 +02:00
Lucas Oliveira
42739a29cf Added types 2024-03-26 21:52:23 +02:00
Lucas Oliveira
5db74fbf5a Changed provider to type and hid field 2024-03-26 21:50:44 +02:00
Gabriel Luiz Freitas Almeida
60bc33dbec Update run_cli and run_cli_debug in Makefile 2024-03-26 16:43:50 -03:00
Gabriel Luiz Freitas Almeida
765a633e99 Add new directory to .gitignore 2024-03-26 16:28:52 -03:00
Gabriel Luiz Freitas Almeida
f60823a40a Update dependencies and install poetry-monorepo-dependency-plugin 2024-03-26 16:22:17 -03:00
Gabriel Luiz Freitas Almeida
d5f647fe4e Add setup_env.sh script to create .env file 2024-03-26 15:36:49 -03:00
anovazzi1
e5b5444e36 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-26 14:25:52 -03:00
anovazzi1
a6d42c043c check edge case when options is empty 2024-03-26 14:25:49 -03:00
Carlos Coelho
2587849fea
Update docs (#1567)
* Add new documentation files and update package dependencies

* Refactor tweak application logic in process_tweaks function

* Add dynamic function creation and execution helpers

* Refactor build method to be asynchronous

* Add FlowToolComponent to handle flows as tools

* Update RunFlowComponent to include a method for updating build config

* Fix duplicated first layer results

* Refactor vertex building and streaming endpoints

* Add base_name attribute to Vertex class

* Refactor flow.py to generate dynamic flow functions and build schemas

* Refactor FlowToolComponent in FlowTool.py

* Add JSONInputComponent to load JSON object as input

* Update render_tool_description method in XMLAgent.py

* Refactor XMLAgentComponent.render_tool_description() method

* Refactor SearchApi.py to include typing and handle empty records

* Refactor SearchApi class to simplify code

* Add SearchApi and SearchApiTool components

* Refactor ServiceFactory and Dependencies (#1560)

* Update dependencies for OpenTelemetry

* Update service dependency logic and add first version of telemetry service

* Remove telemetry service and related code

* Update cache service references

* Refactor imports in env.py

* Refactor code for initializing services and socketio server

* Refactor parameterComponent to use inline button_text

* Refactor build_vertex method and add RunnableVerticesManager class

* Add import statement and update build_vertex function

* Add import statement for SettingsService in MonitorServiceFactory.create() method

* Refactor build_schema_from_inputs to use display_name and description for field names and descriptions respectively

* Refactor graph building and running logic

* Update input type mappings and function arguments

* Update default values for input types in flow.py

* Remove console.log statement in flowStore.ts

* Add vertices_to_run field to VerticesOrderResponse

* Add input_value parameter to chain components

* Refactor CSVAgent build method to include handle_parse_errors parameter

* Add agent_type parameter to CSVAgent build method

* Update model imports in component files

* Add LCAgentComponent and XMLAgentComponent

* Add "agents" category to NATIVE_CATEGORIES

* Refactor model.py to support chat models

* Add system_message parameter to model components

* Update CSVAgent.py: handle_parsing_errors and agent_type options

* Add ping animation to update button

* Fix encryption and decryption of API keys

* Update CSVAgentComponent constructor

* Refactor inputs parameter to inputs_dict in build_vertex function

* Removes "component" table and drops "flowstyle" table

* Delete component model and init files

* Removes "flowstyle" table and drops "user" table index

* Add typing import to CohereModel.py

* Fix ShareModal rendering issue

* Update models docs

* Changed vector-stores docs

* Update component documentation

* Add AstraDB and AstraDBSearch components for AstraDB Vector Store docs

* Rename GetNotified to Listen

* Update GetNotifiedComponent import

* Remove unused imports in flow-runner.mdx and features.mdx

* Add new documentation files and update existing files

* Update package versions in package-lock.json

* Remove unused files

* Delete run-flow.mdx file

* Update topics

* Add new file run-flow.mdx

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-03-26 13:55:54 -03:00
Gabriel Luiz Freitas Almeida
f741b97ac5 Fix capitalization in error messages 2024-03-26 13:53:49 -03:00
Gabriel Luiz Freitas Almeida
0175fc4b06 Add support for loading template field from the database 2024-03-26 13:49:39 -03:00
anovazzi1
1cdaa284d6 add utf-8 characters to inputCOmponent test 2024-03-26 13:23:50 -03:00
Cristhian Zanforlin Lousa
7c114ce37d
Fix CSS on Chat Border when have overflow of variables (#1564)
♻️ (IOview/index.tsx): remove unnecessary 'overflow-hidden' class from IOView component to fix layout issue
2024-03-26 13:05:50 -03:00
Gabriel Luiz Freitas Almeida
201e902aef Update backend run command in Makefile 2024-03-26 10:12:44 -03:00
Gabriel Luiz Freitas Almeida
a9cd2f1054 Update backend installation process 2024-03-26 10:05:42 -03:00
Gabriel Luiz Freitas Almeida
c54c37cdc8 Fix import statement in AstraDB.py 2024-03-26 09:52:19 -03:00
Gabriel Luiz Freitas Almeida
e095444ed4 Remove unnecessary code in __main__.py 2024-03-26 09:52:08 -03:00
Gabriel Luiz Freitas Almeida
a802534508 Update dependencies in Makefile and pyproject.toml 2024-03-26 09:33:26 -03:00
Matheus Jacques
8172e62236
Split Langflow into Langflow and Langflow Base (#1562)
* Initial Restructure

* Replace import langflow for import langflow_base

* Fix dependencies

* 🔧 chore(Makefile): refactor build process to separate base and frontend builds for better organization and maintainability

* 🚀 chore(Makefile): update build_frontend command to copy frontend build to the correct directory
🔖 chore(pyproject.toml): update python and httpx dependencies versions
🔧 chore(__init__.py): update import statement for load_flow_from_json function

* 🔖 chore(pyproject.toml): update package version from 0.0.6 to 0.0.8 to reflect changes in the codebase

* 🚀 feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
🚀 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

* 🐛 fix(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10
 feat(server.ts): add new agent component LCAgentComponent to langflow_base
 feat(server.ts): add new model component LCModelComponent to langflow_base
 feat(server.ts): add new helper functions docs_to_records and records_to_text to langflow_base
 feat(server.ts): add new flow helper functions list_flows, load_flow, run_flow, generate_function_for_flow, get_flow_inputs, build_schema_from_inputs to langflow_base
 feat(server.ts): add new prompt component PromptComponent to langflow_base
 feat(server.ts): add new chat components ChatInput and ChatOutput to langflow_base
 feat(server.ts): add new model component OpenAIModelComponent to langflow_base
🚚 chore(main.py): update import path from langflow.main to langflow_base.main
🚚 chore(service.py): update import path from langflow.services.database.manager to langflow_base.services.database.manager
🚚 chore(factory.py): update import path from langflow.services to langflow_base.services
🚚 chore(service.py): update import path from langflow.services.plugins to langflow_base.services.plugins
🚚 chore(utils.py): update import path from langflow.services to langflow_base.services
🚚 chore(validate.py): update import path from langflow.field_typing to langflow_base.field_typing
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10

* Update Makefile to install backend dependencies and build langflow

* Add langflow main module and update __init__.py

* Update langflow install process to use implicit namespace

* Add langflow-base as a local dependency

* Add setup_poetry target to Makefile

* Update Poetry version and add poetry-monorepo-dependency-plugin

* Refactor code to improve performance and readability

* Update imports to custom and load

* Update content-hash in poetry.lock

---------

Co-authored-by: Matheus <jacquesmats@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-03-26 09:26:30 -03:00
Gabriel Luiz Freitas Almeida
9c0bad3883 Update AstraDB and AstraDBSearch components 2024-03-26 00:33:26 -03:00
Gabriel Luiz Freitas Almeida
bec9346a98 Refactor serialization logic in VertexBuildModel class 2024-03-26 00:33:20 -03:00
Gabriel Luiz Freitas Almeida
ef321fcebe Update pyproject.toml with new dependencies 2024-03-26 00:01:06 -03:00
Gabriel Luiz Freitas Almeida
060ff20cdc Fix string representation of BaseModel in CustomComponent 2024-03-25 23:47:50 -03:00
Gabriel Luiz Freitas Almeida
a35223c23f Add AstraDBSearchComponent to project 2024-03-25 23:32:08 -03:00