Commit graph

7,786 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
38ee9fdd89
0.6.7 Adds Dynamic Field Updates (#1458)
* Update docker-compose.yml

Problems with Docker Compose not being able to find the backend

* Bump vite from 4.5.1 to 4.5.2 in /src/frontend

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Refactor: remove flow if there is no changes

* update group node function to reconnect edges when create groupNode

* Remove console.log statements

* Fix disallowed_special parameter in OpenAIEmbeddingsComponent

* Refactor CharacterTextSplitterComponent to use typing and update return value

* Update ChromaComponent configuration

* Bump version to 0.6.7a1 in pyproject.toml

* Add icon support to CustomComponent

* Add icon property to APIClassType

* Add emoji validation to icon field in custom components

* add emoji icon

* Fix: Error: cannot import name 'CreateTrace' from 'langfuse.callback'

* Refactor langflow processing and langfuse callback initialization

* Update version to 0.6.7a2 in pyproject.toml

* Fix: Bring back loading to avoid white page error

* Add dependabot.yml

* Bump actions/checkout from 2 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github/codeql-action from 2 to 3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/setup-python from 4 to 5

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/cache from 2 to 4

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/setup-node from 3 to 4

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* makes function args not to be sorted by name

* Add field_order property to CustomComponent

* Refactor Template class in base.py

* Update field_order to be an optional list

* Refactor custom component field ordering

* Update prompts.mdx

Update broken link to all page building to complete

* add icon regex

* add isEmoji

* Fix invalid emoji error handling

* Fix invalid emoji validation in Component class

* add logic to icon name

* changing to useCallback function

* Add HuggingFaceInferenceAPIEmbeddingsComponent class

* Update QdrantComponent build method to handle pre-existing vector-stores

* Update python-multipart version

* Update dependencies in pyproject.toml

* Add Python 3.11 support to lint and test workflows

* Refactor import statements in Qdrant.py

* Update dependencies in pyproject.toml

* Fix documentation link and code formatting

* Fix validation of icon field in Component class

* Update imports and deactivate test

* Fixed group nodes appearing at tooltip

* Update imports and type annotations in several components

* Remove Python 3.9 from matrix in test.yml

* refactor: icon fragments functions

* Default display_name to None

* 🔧 chore(base.py): update serialize_display_name method to handle cases where display_name is not set and convert name to title case if title_case is True

* Fix error handling and formatting in component.py and typesStore.ts

* add controlX feature

* Add files via upload

* Fixed groupByFamily

* Add LiteLLMComponent to the project

* Add ChatLiteLLM component to backend

* Update ChatLiteLLM import and add verbose option

* Remove unused code in ChatLiteLLM.py

* Rename LiteLLMComponent to ChatLiteLLMComponent

* Changes some parameters for mypy linting compatibility

* Update cookie settings for login and refresh_token functions

* Update cookie settings for secure access

* Update cookie settings for login and token refresh

* Refactor authentication cookie settings

* Update version to 0.6.7a3 in pyproject.toml

* Fix formatting and import issues

* Import litellm package and update ChatLiteLLMComponent class

* Update version to 0.6.7a3 and fix formatting and import issues (#1445)

* Update version to 0.6.7a3 in pyproject.toml

* Fix formatting and import issues

* Import litellm package and update ChatLiteLLMComponent class

* Update login.py with new auth settings

* Update version to 0.6.7a4 in pyproject.toml

* Update version to 0.6.7a5 in pyproject.toml

* Update Langflow README (#1456)

* Update Langflow README

* Refactor flow creation process

* Update README.md

* Removed some phrases, changed Creating Flows section

* Update README.md with additional project references

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>

* Add docs for field update, icon, and small fixes (#1459)

* Refactor code formatting and improve error handling in utils.py

* Refactor parameterComponent to include refresh button

* Update Langflow description

* Add new_langflow_demo.gif and remove langflow-demo.gif and langflow-screen.png

* Update image source path in README.md

* Add dynamic options and default value support to CustomComponent class

* Update version number in pyproject.toml

* Add title_case option to CustomComponent

* Refactor HuggingFaceEndpointsComponent imports and handle model_kwargs parameter

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: YoungWook KIM <ukng1024@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: igorrCarvalho <igorsilvabhz6@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Łukasz Gajownik <lukasz.gajownik@ordergroup.pl>
Co-authored-by: Chris Bateman <chris-bateman@users.noreply.github.com>
Co-authored-by: Ricardo Henriques <paxcalpt@gmail.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2024-02-23 14:29:00 -03:00
Gabriel Luiz Freitas Almeida
c3492b9064
Update Twitter handle in community.md (#1450)
Update Twitter handle in community.md
2024-02-20 19:52:21 -03:00
Gabriel Luiz Freitas Almeida
70ff39e52b
Merge branch 'main' into url_twitter_update 2024-02-20 17:20:14 -03:00
carlosrcoelho
be515f8afd Update Twitter handle in community.md 2024-02-20 16:44:32 -03:00
Gabriel Luiz Freitas Almeida
f985a427e1
Fix broken link in prompts.mdx (#1448)
This pull request fixes a broken link in the prompts.mdx file. The link
to the "Prompt Customization" page was pointing to the wrong location.
This PR updates the link to the correct location in the documentation.
2024-02-19 19:09:19 -03:00
Gabriel Luiz Freitas Almeida
f1421dccc3 Fix broken link in prompts.mdx 2024-02-19 19:08:32 -03:00
Gabriel Luiz Freitas Almeida
60919a4ae4
Url twitter update (#1441)
Update URL Twitter documentation.
2024-02-19 08:49:22 -03:00
carlosrcoelho
72f420dacd Update Langflow Twitter handle 2024-02-18 19:08:09 -03:00
carlosrcoelho
b6a1989358 Update Twitter links in config and headerComponent 2024-02-18 19:07:07 -03:00
Gabriel Luiz Freitas Almeida
015083aa14
Refactor state management to use Zustand, migrate components to CustomComponent and other fixes (#1403)
This release:

- Adds Components from the Community
- Changes the state management to Zustand which simplifies many parts of
Langflow's frontend
- Migrates many components to CustomComponent to eventually put all
components in the same framework
- Fixes migration problems
2024-02-05 19:22:10 -03:00
Gabriel Luiz Freitas Almeida
e93c512f37
Merge branch 'main' into dev 2024-02-05 19:12:20 -03:00
Gabriel Luiz Freitas Almeida
c370dc87ca Update dependencies in pyproject.toml 2024-02-05 19:06:20 -03:00
Gabriel Luiz Freitas Almeida
392b81b519 Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes"
This reverts commit f3b3d2cf68.
2024-02-05 19:02:34 -03:00
Gabriel Luiz Freitas Almeida
d2bfd300a6
Release 0.6.5 (#1400)
This release:

- Adds Components from the Community
- Changes the state management to Zustand which simplifies many parts of
Langflow's frontend
- Migrates many components to CustomComponent to eventually put all
components in the same framework
- Fixes migration problems
2024-02-05 18:34:57 -03:00
Gabriel Luiz Freitas Almeida
7b5225f857
Merge branch 'main' into dev 2024-02-05 18:34:19 -03:00
anovazzi1
ee22000c52 Fix output type separator in GenericNode component 2024-02-05 18:33:11 -03:00
Gabriel Luiz Freitas Almeida
93e012e21a
Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" (#1398)
Reverts logspace-ai/langflow#1397
2024-02-05 18:29:48 -03:00
Gabriel Luiz Freitas Almeida
f3b3d2cf68
Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 18:29:03 -03:00
Gabriel Luiz Freitas Almeida
37a968efb0 Update version number in pyproject.toml 2024-02-05 18:27:34 -03:00
Gabriel Luiz Freitas Almeida
642e57d21e
Refactor state management to use Zustand, migrate components to CustomComponent and other fixes (#1397)
This release:

- Adds Components from the Community
- Changes the state management to Zustand which simplifies many parts of
Langflow's frontend
- Migrates many components to CustomComponent to eventually put all
components in the same framework
- Fixes migration problems
2024-02-05 18:22:19 -03:00
Gabriel Luiz Freitas Almeida
e5b4da8431
Merge branch 'main' into dev 2024-02-05 18:18:04 -03:00
Gabriel Luiz Freitas Almeida
1b867586c2 Update OpenAI models and options 2024-02-05 18:17:23 -03:00
Gabriel Luiz Freitas Almeida
bbf8b2ab0b Remove unnecessary "required" attribute from field_config in VectaraComponent 2024-02-05 17:53:15 -03:00
anovazzi1
6fcc754704 Update Playwright configuration and fix Select component 2024-02-05 17:32:43 -03:00
Gabriel Luiz Freitas Almeida
c2563f6832
Add RecursiveCharacterTextSplitter import and documentation link (#1396)
This pull request adds the import statement for
RecursiveCharacterTextSplitter and includes a documentation link for it
in the text_splitter module.
2024-02-05 17:02:20 -03:00
Gabriel Luiz Freitas Almeida
54190f09ba Add RecursiveCharacterTextSplitter documentation link 2024-02-05 16:28:50 -03:00
Gabriel Luiz Freitas Almeida
eb3a0d4bc4 Add RecursiveCharacterTextSplitter import 2024-02-05 16:28:13 -03:00
anovazzi1
8023332260
add vectara icon (#1389)
* adding vectara icon

* Add field_typing imports and source parameter to VectaraComponent

* Refactor Vectara imports and update dependencies

* Refactor VectaraSelfQueryRetriverComponent class and update field_config

* Remove None values and update template strings

* Add get_output_types_from_code method to DirectoryReader

* Refactor directory_reader.py and handle exception when getting output types from code

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-02-02 18:01:29 -03:00
Gabriel Luiz Freitas Almeida
c0c64c99c9 Update imports to use langchain_core.documents 2024-02-01 09:37:37 -03:00
Gabriel Luiz Freitas Almeida
7efa79af69 Fix formatting issues and update code style 2024-02-01 09:35:46 -03:00
Gabriel Luiz Freitas Almeida
42ce5b7112 Refactor RedisComponent to handle existing index in Redis 2024-02-01 09:35:46 -03:00
Gabriel Luiz Freitas Almeida
f670ba50ac
Fix vectorstores/PGVector missing output issue. (#1296)
In previous version, the output disappeared. I've fixed it and made it
support the output component "Chains" as well.

Before:

![image](https://github.com/logspace-ai/langflow/assets/7540749/704b7e0a-62b5-4691-90df-c6bd1f266f10)
After:

![image](https://github.com/logspace-ai/langflow/assets/7540749/fac77b3f-c48c-4b5f-ad27-f4176637c2be)
2024-02-01 09:34:59 -03:00
Gabriel Luiz Freitas Almeida
54df76096f
Merge branch 'dev' into fix/vectorstores/pgvector 2024-02-01 09:34:50 -03:00
Gabriel Luiz Freitas Almeida
a6877033f8
Fix vectorstores/Redis to support output component "Chains" (#1292)
The previous version was missing  output component "Chains".
Before:

![image](https://github.com/logspace-ai/langflow/assets/7540749/079dca11-68da-4a0d-8d0e-80b97321d90e)
After:

![image](https://github.com/logspace-ai/langflow/assets/7540749/9331ceac-28be-4a4d-a37a-f3b20ae18ea8)
2024-02-01 09:20:19 -03:00
Gabriel Luiz Freitas Almeida
1d46ba5d74
Merge branch 'dev' into fix/vectorstores/redis 2024-02-01 09:20:13 -03:00
Gabriel Luiz Freitas Almeida
e2f0fd0a75
Update buffer-memory.mdx (#1365)
Update the ref link for langchain component - Conversation Buffer
2024-02-01 09:18:41 -03:00
Gabriel Luiz Freitas Almeida
8f9d3ce155
Fix AgentInitializer to has last statement of returning base class (#1301)
From the last update, AgentInitializer lost ability to chain another
AgentInitializer via tool.
Fix issue: https://github.com/logspace-ai/langflow/issues/1255
2024-02-01 09:18:04 -03:00
Gabriel Luiz Freitas Almeida
3a5e3f24af
chat websocket api support param token and x-api-key (#1339)
Currently, chat interfaces do not support x-api-key authentication. In
this modification, token or x-api-key authentication is supported
2024-02-01 09:16:16 -03:00
Gabriel Luiz Freitas Almeida
e61e4ac51b
Update Langchain to 0.1 and migrate most components to CustomComponent (#1382)
This PR updates Langchain to 0.1.* and move components previously
created automatically to start using the CustomComponent framework.

This will improve maintainability and move Langflow to be closer to the
framework.
2024-01-31 17:43:18 -03:00
Gabriel Luiz Freitas Almeida
339029cd5b Update import statement for retrievers module 2024-01-31 17:33:32 -03:00
Gabriel Luiz Freitas Almeida
11473961e0 Update dependencies to latest versions 2024-01-31 17:09:38 -03:00
Gabriel Luiz Freitas Almeida
57c09c3409 Add unique constraints and foreign key for user_id in flow table 2024-01-31 17:09:16 -03:00
Gabriel Luiz Freitas Almeida
da9b139801 Remove empty lines in pyproject.toml 2024-01-31 17:00:22 -03:00
Gabriel Luiz Freitas Almeida
d8e34c1c6b Update dependencies in pyproject.toml 2024-01-31 16:59:18 -03:00
Gabriel Luiz Freitas Almeida
e111e01efd Update version number in pyproject.toml 2024-01-31 15:57:31 -03:00
Gabriel Luiz Freitas Almeida
2076f32704 Merge branch 'dev' into update_lc 2024-01-31 15:57:16 -03:00
Gabriel Luiz Freitas Almeida
cbf80c9fcd Delete document loader components 2024-01-31 15:50:24 -03:00
Gabriel Luiz Freitas Almeida
c54c7246b6 Update document loader imports 2024-01-31 15:50:04 -03:00
Lucas Oliveira
b49e0578d7 fix cursor position on safari 2024-01-31 11:54:08 +01:00
Lucas Oliveira
5984a45178 removed unused utils function 2024-01-31 11:37:11 +01:00