Commit graph

12,312 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
ebb7f545ad refactor: Update end_all_traces method to accept error parameter 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
60642faf71 refactor: Update Component class to include dynamic inputs in get_trace_as_inputs method 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
3cba1380de 🐛 (chat.py): fix issue where end_all_traces method was not being called correctly with the required arguments
💡 (chat.py): improve error handling by passing error message to end_all_traces method and ensure it is called with the correct arguments
2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
44a23ebef4 refactor: Add error handling to TracingService methods 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
277baff204 📝 (starter_projects): Update trace_type attribute to "prompt" for consistency and clarity in starter projects JSON files.
 (VectorStore-RAG-Flows.json): Update class inheritance to LCEmbeddingsModel for OpenAIEmbeddingsComponent to align with changes in the codebase
📝 (VectorStore-RAG-Flows.json): Add trace_type attribute to PromptComponent class for better tracking and identification of components

📝 (VectorStore-RAG-Flows.json): update import path for LCEmbeddingsModel in OpenAIEmbeddingsComponent to match new file structure and improve code organization.
2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
e1a0de8133 chore: Add trace_type attribute to FlowToolComponent 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
e124ac1a75 chore: Add trace_type attribute to PromptComponent 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
83795a8c7a chore: Add trace_type attribute to LCVectorStoreComponent 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
25b4f94b33 chore: Add trace_type attribute to LCModelComponent 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
2f04ac3e44 chore: Add LCEmbeddingsModel class for handling embeddings in langflow 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
935aefcdea chore: Refactor Component class to include tracing functionality 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
a6e9972f4b (utils.py): Add functionality to trace runs
🔧 (chat.py): Remove redundant setting of run_id in retrieve_vertices_order function
🔧 (chat.py): Remove setting of run_id in build_vertex function and add end_all_traces method call when no next_runnable_vertices
🔧 (base.py): Add logic to set run_name based on flow name and flow id, and end all traces with metadata in Graph class
2024-06-21 20:04:20 -07:00
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