weave-haystack 3.0.0__tar.gz → 3.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weave_haystack-3.1.0/CHANGELOG.md +9 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/LICENSE.txt +1 -1
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/PKG-INFO +1 -1
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/pydoc/config_docusaurus.yml +3 -3
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/components/connectors/weave/__init__.py +1 -1
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/components/connectors/weave/weave_connector.py +6 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/tracing/weave/__init__.py +1 -1
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/tracing/weave/tracer.py +4 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/tests/test_tracer.py +4 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/tests/test_weave_connector.py +10 -1
- weave_haystack-3.0.0/CHANGELOG.md +0 -36
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/.gitignore +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/README.md +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/example/README.md +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/example/hybrid_retrieval.py +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/pyproject.toml +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/components/connectors/py.typed +0 -0
- {weave_haystack-3.0.0 → weave_haystack-3.1.0}/src/haystack_integrations/tracing/py.typed +0 -0
|
@@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|
|
58
58
|
|
|
59
59
|
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
60
60
|
|
|
61
|
-
Copyright
|
|
61
|
+
Copyright 2025 deepset GmbH
|
|
62
62
|
|
|
63
63
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
64
|
you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: weave-haystack
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: An integration of Weights & Biases Weave tracer with Haystack
|
|
5
5
|
Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations
|
|
6
6
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/weave/README.md
|
|
@@ -17,13 +17,13 @@ processors:
|
|
|
17
17
|
- type: crossref
|
|
18
18
|
renderer:
|
|
19
19
|
description: Weights & Bias integration for Haystack
|
|
20
|
-
id: integrations-
|
|
20
|
+
id: integrations-weave
|
|
21
21
|
markdown:
|
|
22
22
|
add_member_class_prefix: false
|
|
23
23
|
add_method_class_prefix: true
|
|
24
24
|
classdef_code_block: false
|
|
25
25
|
descriptive_class_title: false
|
|
26
26
|
descriptive_module_title: true
|
|
27
|
-
filename:
|
|
28
|
-
title:
|
|
27
|
+
filename: weave.md
|
|
28
|
+
title: Weave
|
|
29
29
|
type: haystack_pydoc_tools.renderers.DocusaurusRenderer
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2025-present deepset GmbH <info@deepset.ai>
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
1
5
|
from typing import Any
|
|
2
6
|
|
|
3
7
|
from haystack import component, default_from_dict, default_to_dict, logging, tracing
|
|
@@ -90,6 +94,8 @@ class WeaveConnector:
|
|
|
90
94
|
|
|
91
95
|
@component.output_types(pipeline_name=str)
|
|
92
96
|
def run(self) -> dict[str, str]:
|
|
97
|
+
if self.tracer is None:
|
|
98
|
+
self.warm_up()
|
|
93
99
|
# NOTE: this is a no-op component - it simply triggers the Tracer to sends traces to Weights & Biases
|
|
94
100
|
return {"pipeline_name": self.pipeline_name}
|
|
95
101
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2025-present deepset GmbH <info@deepset.ai>
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
1
5
|
import os
|
|
2
6
|
from collections.abc import Generator
|
|
3
7
|
from typing import Any
|
|
@@ -21,7 +25,7 @@ class FailingComponent:
|
|
|
21
25
|
def run(self) -> dict[str, Any]:
|
|
22
26
|
"""Execute the component's logic - always raises an exception."""
|
|
23
27
|
msg = "Test error"
|
|
24
|
-
raise PipelineRuntimeError(msg)
|
|
28
|
+
raise PipelineRuntimeError(component_name="FailingComponent", component_type=FailingComponent, message=msg)
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
@pytest.fixture
|
|
@@ -146,6 +150,11 @@ class TestWeaveConnector:
|
|
|
146
150
|
error_traces = [args for args in finish_call_args if args[1].get("exception") is not None]
|
|
147
151
|
assert len(error_traces) > 0
|
|
148
152
|
|
|
153
|
+
@pytest.mark.skipif(
|
|
154
|
+
not os.environ.get("WANDB_API_KEY", None),
|
|
155
|
+
reason="Export an env var called WANDB_API_KEY containing the Weights & Bias API key to run this test.",
|
|
156
|
+
)
|
|
157
|
+
@pytest.mark.integration
|
|
149
158
|
def test_run_method(self) -> None:
|
|
150
159
|
"""Test the basic run method of WeaveConnector"""
|
|
151
160
|
connector = WeaveConnector(pipeline_name="test_pipeline")
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [integrations/weights_and_biases_weave-v2.0.0] - 2025-09-16
|
|
4
|
-
|
|
5
|
-
### 🐛 Bug Fixes
|
|
6
|
-
|
|
7
|
-
- Weave - pin gql (#2198)
|
|
8
|
-
|
|
9
|
-
### 🚜 Refactor
|
|
10
|
-
|
|
11
|
-
- [**breaking**] Weave - update patching support and unpin gql (#2272)
|
|
12
|
-
|
|
13
|
-
### 🧹 Chores
|
|
14
|
-
|
|
15
|
-
- Standardize readmes - part 2 (#2205)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## [integrations/weights_and_biases_weave-v1.0.0] - 2025-07-01
|
|
19
|
-
|
|
20
|
-
### 🐛 Bug Fixes
|
|
21
|
-
|
|
22
|
-
- [**breaking**] Weave - move Connector, fix types, add py.typed (#2038)
|
|
23
|
-
|
|
24
|
-
### 🧹 Chores
|
|
25
|
-
|
|
26
|
-
- Align core-integrations Hatch scripts (#1898)
|
|
27
|
-
- Remove black (#1985)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [integrations/weights_and_biases_weave-v0.0.1] - 2025-03-28
|
|
31
|
-
|
|
32
|
-
### 🚜 Refactor
|
|
33
|
-
|
|
34
|
-
- Renaming the project/package to weights_biases_weave (#1565)
|
|
35
|
-
|
|
36
|
-
<!-- generated by git-cliff -->
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|