Commit graph

12,300 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
1909acca52 Refactor input classes to include traceability and metadata support 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
9e4a414682 chore: Refactor loading.py to improve component instantiation and build process 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
65e2d682fc feat: Refactor TracingService to support LangSmithTracer and initialize tracers 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
9dc6def567 chore: Update TracingServiceFactory to include MonitorService in create method 2024-06-21 20:04:20 -07:00
ogabrielluiz
a4736fd0b9 feat: Add TracingService and TracingServiceFactory
This commit adds a new service called TracingService and a corresponding factory class called TracingServiceFactory. The TracingService is responsible for handling tracing functionality, while the TracingServiceFactory is used to create instances of the TracingService. This addition enables the application to support tracing capabilities.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-21 20:04:20 -07:00
Nicolò Boschi
076498ebcf
docker: make images arm64-compatible (#2199)
* optimize multi-arch docker build on x86

* test

* test

* test

* test

* separate build

* separate build

* fix package versions

* also fixes the release

* orjson

* orjson

* fix cryptography

* fix duckdb

* all

* all

* fix

* use provenance
2024-06-21 19:57:51 -07:00
Mendon Kissling
682a1c65fe
Docs 1.0a changes (#2241)
* folders

* screenshots

* output-preview

* custom-api-endpoint

* screenshots

* memory-management

* update-component-version

* img

* errors

* space

* fix-issue

* remove-weird-footers

* mdx

* fix-import
2024-06-21 17:24:50 -04:00
cristhianzl
8bf7156e90 📝 (env.example): add comment to clarify BACKEND_URL value must end with a slash 2024-06-21 17:54:32 -03:00
Cristhian Zanforlin Lousa
74b8b98cb2
Two edges (#2249)
* fix error on port frontend variable .env

*  (constants.ts, vite.config.mts): add support for configurable LANGFLOW_HOST environment variable to allow dynamic backend URL configuration

* 🔧 (constants.ts, vite.config.mts): consolidate backend URL configuration into a single environment variable
2024-06-21 17:26:58 -03:00
Gabriel Luiz Freitas Almeida
b70d08e5e7 refactor: Remove ClearMessageHistoryComponent 2024-06-21 17:00:58 -03:00
Gabriel Luiz Freitas Almeida
65e1c4230a
New Component, Multiple outputs and type refactor (#2246)
This PR adds a new way of building Langflow Components, adds the
possibility of defining more than one output and adds the `io` module
that exposes many types of inputs.

The components that inherit from `CustomComponent` should still work. 

Components now mostly output `Data`(former `Record`) and `Message`. 

`MessageInput` passes a `Message` object to the component while
`TextInput` gets the `.text` from the `Message` and passes it as a
string.
2024-06-21 12:11:56 -07:00
italojohnny
703ce9360f update basic prompt example 2024-06-21 15:58:15 -03:00
Gabriel Luiz Freitas Almeida
9615e7405d Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-21 15:51:37 -03:00
Gabriel Luiz Freitas Almeida
cad13f17c3 refactor: Update test_data_components.py to assert file_dict instead of result.text in test_directory_without_mocks 2024-06-21 15:46:17 -03:00
Gabriel Luiz Freitas Almeida
25eed67f98 refactor: Improve handling of message content in HumanMessage object 2024-06-21 15:42:33 -03:00
Gabriel Luiz Freitas Almeida
ba343be992 🐛 (message.py): fix issue where message content was not being properly formatted and displayed in the HumanMessage object
📝 (message.py): improve the logic for handling message content and formatting to ensure correct display in the HumanMessage object
2024-06-21 15:10:05 -03:00
cristhianzl
324b76d2d1 🐛 (index.tsx): remove unused parameter folderId from handleFolderChange function to fix potential bug 2024-06-21 14:45:20 -03:00
Gabriel Luiz Freitas Almeida
b3903b0b03 update rag project 2024-06-21 14:10:19 -03:00
Gabriel Luiz Freitas Almeida
11f2ca0cfb refactor: Add reload include for backend source files in launch.json 2024-06-21 14:10:07 -03:00
Gabriel Luiz Freitas Almeida
ee2d3e6c03 update vector store flow 2024-06-21 13:53:29 -03:00
Gabriel Luiz Freitas Almeida
137e82f5a4 refactor: Add conditional check before setting cache in Graph class 2024-06-21 13:16:34 -03:00
Gabriel Luiz Freitas Almeida
632fe985ac refactor: Update convert_chat_history method in ToolCallingAgentComponent 2024-06-21 13:16:27 -03:00
Gabriel Luiz Freitas Almeida
f85d641bbc refactor:cast agent to BaseSingleActionAgent 2024-06-21 13:07:32 -03:00
Gabriel Luiz Freitas Almeida
98ecdf3e3e refactor: Serialize text data to JSON format in parse_text_file_to_data 2024-06-21 13:00:33 -03:00
Gabriel Luiz Freitas Almeida
cd011a96b9 format project 2024-06-21 12:57:51 -03:00
Gabriel Luiz Freitas Almeida
e4859479b0 update blog writer 2024-06-21 12:44:51 -03:00
Gabriel Luiz Freitas Almeida
40ad4b63bb Update documentQA 2024-06-21 12:40:56 -03:00
Gabriel Luiz Freitas Almeida
e2ff9f04ee refactor: Update memory chatbot project 2024-06-21 12:37:28 -03:00
Gabriel Luiz Freitas Almeida
08ab30e9ee ♻️ (types.py): remove unused artifacts variable to clean up the code and improve readability 2024-06-21 12:37:10 -03:00
Gabriel Luiz Freitas Almeida
4f800f0da4 refactor: Remove unused imports and update langflow components 2024-06-21 12:36:50 -03:00
Gabriel Luiz Freitas Almeida
0cf0bed97e 🐛 (ToolCallingAgent.py): fix syntax error in type hint for dictionary in convert_chat_history method 2024-06-21 12:36:12 -03:00
anovazzi1
d80df8e3c5 Apply Prettier formatting 2024-06-21 15:28:25 +00:00
anovazzi1
64eb2e0f99 refactor: Improve InputGlobalComponent behavior and data handling 2024-06-21 12:26:57 -03:00
Gabriel Luiz Freitas Almeida
111def3d4a refactor: Update ComponentVertex to handle Message artifacts and extract messages from artifacts 2024-06-21 11:18:39 -03:00
Gabriel Luiz Freitas Almeida
984dc5fb67 refactor: Update build_vertex_stream function to use cache for retrieving graph and session data 2024-06-21 11:18:28 -03:00
Gabriel Luiz Freitas Almeida
b35d17b800 refactor: Remove unnecessary output method from LCVectorStoreComponent 2024-06-21 11:18:01 -03:00
Gabriel Luiz Freitas Almeida
5a288e9c51 refactor: Import langflow.custom.Component and CustomComponent in loading.py 2024-06-21 09:35:40 -03:00
Cezar Vasconcelos
33129c7466 refactor: adjust ToolCallingAgent to use new IO and ChatHistory, added helper functions 2024-06-21 01:54:04 +00:00
Gabriel Luiz Freitas Almeida
806cbf3842 refactor: Update BaiduQianfanChatModel.py to use BaseLLM type hinting for return value 2024-06-20 22:15:00 -03:00
Gabriel Luiz Freitas Almeida
85a7ae8993 fix formatting issue 2024-06-20 22:03:54 -03:00
Gabriel Luiz Freitas Almeida
95beb9fdc2 refactor: Update BaiduQianfanChatModel.py to use BaseLLM type hinting for return value 2024-06-20 22:03:27 -03:00
Gabriel Luiz Freitas Almeida
9145640ed1 refactor: Update DropdownInput options to use list[str] type hinting 2024-06-20 22:03:27 -03:00
Gabriel Luiz Freitas Almeida
924df4bdad refactor: Update RedisVectorStoreComponent to use VectorStore type hinting in return value 2024-06-20 22:03:27 -03:00
Gabriel Luiz Freitas Almeida
ce031fcc35 refactor: Add description to 'name' field in Output class 2024-06-20 22:03:26 -03:00
italojohnny
080dc7b327 fix assignment error reported by mypy 2024-06-20 22:02:48 -03:00
Gabriel Luiz Freitas Almeida
069c27bda0 refactor: Update RedisVectorStoreComponent to use Retriever type hinting in return value 2024-06-20 21:58:12 -03:00
Gabriel Luiz Freitas Almeida
1391d5ef09 refactor: Update BaiduQianfanChatModel.py to use type hinting for return value 2024-06-20 21:58:12 -03:00
Gabriel Luiz Freitas Almeida
7eeb6ea78a refactor: Update instantiate_class function to support CustomComponent and Component inheritance 2024-06-20 21:58:12 -03:00
Gabriel Luiz Freitas Almeida
fe032f3830 refactor: Update error message in FrontendNode class to include overlapping output and input names 2024-06-20 21:58:12 -03:00
italojohnny
228d4e8574 fix union-attr error reported by mypy 2024-06-20 21:57:25 -03:00