Commit graph

9,402 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
f19c449f15
Add Frontend Tests (#1571)
* Add TypeScript test workflow

* Update follow-redirects and katex versions

* Add Python setup and Poetry installation for backend

* Update Poetry version and setup Python in workflows

* Add Poetry installation step to GitHub Actions workflow

* Add Playwright report artifact upload and improve test script

* Update Playwright test configuration and add global teardown script

* Update path for playwright-report directory

* Update timeout value in playwright.config.ts

* Update page URLs in end-to-end tests

* Update GitHub Actions workflow and Playwright configuration

* Update TypeScript test workflow

* Add pattern and merge-multiple options to artifact download

* Update TypeScript test workflow to install Poetry

* Add cache steps for Playwright and Poetry

* Update PLAYWRIGHT_BROWSERS_PATH in TypeScript test workflow

* Add 'stuff/' to .gitignore

* Remove caching of Poetry virtualenv

* Update frontend tests to use Playwright for UI testing

* Add global teardown for removing temp database

* Add cache-hit condition to setup-node and setup-python steps

* Add new file to .gitignore and update ignored files

* Update playwright cache key in TypeScript test workflow

* Update path for blob-report in GitHub workflow

* Update path for playwright cache

* Update dependency installation in workflows

* Update baseURL in playwright.config.ts

* Update baseURL in playwright.config.ts

* Refactor test timeouts

* Remove playwright-report index.html file

* Add npm run start command to playwright.config.ts

* Update npm start command in playwright.config.ts

* Update Playwright browser caching and installation

* Update playwright cache path

* Update playwright cache path

* Update actions/cache version to v4

* Update Playwright cache key to use package-lock.json

* Update Playwright cache and install dependencies

* Fix typo in Playwright installation command

* Fix npm ci command in TypeScript test workflow

* Update TypeScript test workflow
2024-03-27 14:27:40 -03:00
igorrCarvalho
a3b7001264 Refactor: Increase hover time 2024-03-27 14:21:49 -03:00
Gabriel Luiz Freitas Almeida
569d384573 Add AstraDB icon and field order to AstraDBVectorStoreComponent and AstraDBSearchComponent 2024-03-27 00:43:02 -03:00
Gabriel Luiz Freitas Almeida
395f75f5bd Refactor Makefile to use conditional statements for environment variables 2024-03-26 20:57:27 -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
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
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
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
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
Gabriel Luiz Freitas Almeida
2c57096930 Update LCVectorStoreComponent to set status after converting docs to records 2024-03-25 23:24:36 -03:00
anovazzi1
c38a50a7eb Fix ShareModal rendering issue 2024-03-25 17:34:08 -03:00
Gabriel Luiz Freitas Almeida
acfbfd087c Add typing import to CohereModel.py 2024-03-25 17:29:06 -03:00
Gabriel Luiz Freitas Almeida
36d8129191 Removes "flowstyle" table and drops "user" table index 2024-03-25 16:49:26 -03:00
Gabriel Luiz Freitas Almeida
5f17228bfc Delete component model and init files 2024-03-25 16:48:31 -03:00
Gabriel Luiz Freitas Almeida
d900473385 Removes "component" table and drops "flowstyle" table 2024-03-25 16:48:23 -03:00
Gabriel Luiz Freitas Almeida
e14d089527 Refactor inputs parameter to inputs_dict in build_vertex function 2024-03-25 16:17:53 -03:00
Gabriel Luiz Freitas Almeida
9884e565ba Update CSVAgentComponent constructor 2024-03-25 15:58:55 -03:00
Gabriel Luiz Freitas Almeida
583c203b2b Fix encryption and decryption of API keys 2024-03-25 15:44:38 -03:00
Gabriel Luiz Freitas Almeida
13f2881f00 Add ping animation to update button 2024-03-25 15:44:32 -03:00
Gabriel Luiz Freitas Almeida
fec3451d93 Update CSVAgent.py: handle_parsing_errors and agent_type options 2024-03-25 15:44:15 -03:00
Gabriel Luiz Freitas Almeida
6493d51bac Add system_message parameter to model components 2024-03-25 15:06:17 -03:00
Gabriel Luiz Freitas Almeida
d59f996130 Refactor model.py to support chat models 2024-03-25 15:06:06 -03:00
Gabriel Luiz Freitas Almeida
60139e9c87 Add "agents" category to NATIVE_CATEGORIES 2024-03-25 14:46:08 -03:00
Gabriel Luiz Freitas Almeida
b437ca007e Add LCAgentComponent and XMLAgentComponent 2024-03-25 14:46:01 -03:00
Gabriel Luiz Freitas Almeida
db4a4e52aa Update model imports in component files 2024-03-25 14:45:48 -03:00
Gabriel Luiz Freitas Almeida
611a2f8d38 Add agent_type parameter to CSVAgent build method 2024-03-25 14:45:31 -03:00