Commit graph

12,533 commits

Author SHA1 Message Date
ming luo
b2c714067a update poetry.lock 2024-06-21 20:55:42 -07:00
ming luo
17adc8b5a5 fix unit test 2024-06-21 20:55:42 -07:00
ming luo
1bf668a941 kubernetes secret manager 2024-06-21 20:55:42 -07:00
ming luo
c2b9f22172 poetry run ruff format . 2024-06-21 20:55:42 -07:00
ming luo
e416c7a0c6 fix test and ruff 2024-06-21 20:55:42 -07:00
ming luo
59f96c2ea3 add varaible service base 2024-06-21 20:55:42 -07:00
Gabriel Luiz Freitas Almeida
977181fd22 refactor: Update TracingService to use defaultdict for inputs and outputs 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
1e7b92a44c Update build_component_and_get_results function to use the private _tracing_service variable for improved encapsulation and code organization. 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
bf57cb8e43 refactor: Add child link dictionary to LangSmithTracer class 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
716d2567bd refactor: Update Vite configuration to use port 3000 as default 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
cdcd70464a refactor: Update logging functionality to support asynchronous processing 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
c11c18d719 📝 (service.py): add async tracing
📝 (log.py): add LoggableType to define the type of log messages in the schema
📝 (schema.py): import LoggableType from log.py to use in defining the type of log messages in the Log class
📝 (service.py): add asyncio functionality to log_worker method for processing logs asynchronously
📝 (service.py): add start, flush, and stop methods to manage the logging worker task asynchronously
📝 (service.py): change initialize_tracers method to be asynchronous and start the logging worker
📝 (service.py): add async functionality to end method to stop the logging worker
📝 (service.py): change add_log method to be asynchronous and use asyncio to start the logging worker if not running
📝 (service.py): change contextmanager to asynccontextmanager for trace_context method to handle asynchronous operations
2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
2cac7b472f 🐛 (chat.py): Call 'initialize_run()' method on the 'graph' object after retrieving it from cache to ensure proper initialization 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
d20efe4bba (utils.py): add initialization of run and cache setting for the graph to improve performance and functionality 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
9991c6ea4c refactor: Update Component class to use private _tracing_service variable 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
2affde4dbf refactor: Update build_component_and_get_results function to handle custom components and base components separately 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
6e7a5fa7bd refactor: Update CustomComponent to use private _tracing_service variable 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
94df7be2dd refactor: Update logs to outputs in CustomComponent and TracingService classes 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
e19d9c90ea refactor: Update logs to outputs in relevant classes and methods 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
36681d2d34 refactor: Update logs to outputs in ComponentVertex and ResultDataResponse classes 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
1c6047b269 refactor: Set run ID to a random UUID if not provided in set_run_id method 2024-06-21 20:04:20 -07:00
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