langfuse-haystack 0.6.1__tar.gz → 0.6.3__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.
Files changed (18) hide show
  1. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/CHANGELOG.md +43 -5
  2. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/PKG-INFO +5 -4
  3. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/pyproject.toml +1 -1
  4. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/src/haystack_integrations/tracing/langfuse/tracer.py +2 -3
  5. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/.gitignore +0 -0
  6. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/LICENSE.txt +0 -0
  7. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/README.md +0 -0
  8. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/example/basic_rag.py +0 -0
  9. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/example/chat.py +0 -0
  10. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/example/requirements.txt +0 -0
  11. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/pydoc/config.yml +0 -0
  12. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/src/haystack_integrations/components/connectors/langfuse/__init__.py +0 -0
  13. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/src/haystack_integrations/components/connectors/langfuse/langfuse_connector.py +0 -0
  14. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/src/haystack_integrations/tracing/langfuse/__init__.py +0 -0
  15. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/tests/__init__.py +0 -0
  16. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/tests/test_langfuse_span.py +0 -0
  17. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/tests/test_tracer.py +0 -0
  18. {langfuse_haystack-0.6.1 → langfuse_haystack-0.6.3}/tests/test_tracing.py +0 -0
@@ -1,23 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## [integrations/langfuse-v0.6.2] - 2025-01-02
4
+
5
+ ### 🚀 Features
6
+
7
+ - Warn if LangfuseTracer initialized without tracing enabled (#1231)
8
+
9
+ ### 🧹 Chores
10
+
11
+ - Use text instead of content for ChatMessage in Llama.cpp, Langfuse and Mistral (#1238)
12
+
13
+ ### 🌀 Miscellaneous
14
+
15
+ - Chore: Fix tracing_context_var lint errors (#1220)
16
+ - Fix messages conversion to OpenAI format (#1272)
17
+
3
18
  ## [integrations/langfuse-v0.6.0] - 2024-11-18
4
19
 
5
20
  ### 🚀 Features
6
21
 
7
22
  - Add support for ttft (#1161)
8
23
 
9
- ### ⚙️ Miscellaneous Tasks
24
+ ### ⚙️ CI
10
25
 
11
26
  - Adopt uv as installer (#1142)
12
27
 
28
+ ### 🌀 Miscellaneous
29
+
30
+ - Fixed TypeError in LangfuseTrace (#1184)
31
+
13
32
  ## [integrations/langfuse-v0.5.0] - 2024-10-01
14
33
 
15
- ### ⚙️ Miscellaneous Tasks
34
+ ### 🧹 Chores
16
35
 
17
36
  - Update ruff linting scripts and settings (#1105)
18
37
 
19
- ### Langfuse
38
+ ### 🌀 Miscellaneous
20
39
 
40
+ - Fix: Add delay to flush the Langfuse traces (#1091)
21
41
  - Add invocation_context to identify traces (#1089)
22
42
 
23
43
  ## [integrations/langfuse-v0.4.0] - 2024-09-17
@@ -38,14 +58,27 @@
38
58
 
39
59
  - Do not retry tests in `hatch run test` command (#954)
40
60
 
41
- ### ⚙️ Miscellaneous Tasks
61
+ ### ⚙️ CI
42
62
 
43
63
  - Retry tests to reduce flakyness (#836)
64
+
65
+ ### 🧹 Chores
66
+
44
67
  - `Langfuse` - replace DynamicChatPromptBuilder with ChatPromptBuilder (#925)
45
68
  - Remove all `DynamicChatPromptBuilder` references in Langfuse integration (#931)
46
69
 
70
+ ### 🌀 Miscellaneous
71
+
72
+ - Ci: install `pytest-rerunfailures` where needed; add retry config to `test-cov` script (#845)
73
+ - Chore: Update Langfuse README to avoid common initialization issues (#952)
74
+ - Chore: langfuse - ruff update, don't ruff tests (#992)
75
+
47
76
  ## [integrations/langfuse-v0.2.0] - 2024-06-18
48
77
 
78
+ ### 🌀 Miscellaneous
79
+
80
+ - Feat: add support for Azure generators (#815)
81
+
49
82
  ## [integrations/langfuse-v0.1.0] - 2024-06-13
50
83
 
51
84
  ### 🚀 Features
@@ -56,8 +89,13 @@
56
89
 
57
90
  - Performance optimizations and value error when streaming in langfuse (#798)
58
91
 
59
- ### ⚙️ Miscellaneous Tasks
92
+ ### 🧹 Chores
60
93
 
61
94
  - Use ChatMessage to_openai_format, update unit tests, pydocs (#725)
62
95
 
96
+ ### 🌀 Miscellaneous
97
+
98
+ - Chore: change the pydoc renderer class (#718)
99
+ - Docs: add missing api references (#728)
100
+
63
101
  <!-- generated by git-cliff -->
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: langfuse-haystack
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/langfuse#readme
5
5
  Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
6
6
  Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/langfuse
7
7
  Author-email: deepset GmbH <info@deepset.ai>
8
- License: Apache-2.0
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE.txt
9
10
  Classifier: Development Status :: 4 - Beta
10
11
  Classifier: Programming Language :: Python
11
12
  Classifier: Programming Language :: Python :: 3.8
@@ -16,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
16
17
  Classifier: Programming Language :: Python :: Implementation :: CPython
17
18
  Classifier: Programming Language :: Python :: Implementation :: PyPy
18
19
  Requires-Python: >=3.8
19
- Requires-Dist: haystack-ai>=2.1.0
20
+ Requires-Dist: haystack-ai>=2.9.0
20
21
  Requires-Dist: langfuse
21
22
  Description-Content-Type: text/markdown
22
23
 
@@ -22,7 +22,7 @@ classifiers = [
22
22
  "Programming Language :: Python :: Implementation :: CPython",
23
23
  "Programming Language :: Python :: Implementation :: PyPy",
24
24
  ]
25
- dependencies = ["haystack-ai>=2.1.0", "langfuse"]
25
+ dependencies = ["haystack-ai>=2.9.0", "langfuse"]
26
26
 
27
27
  [project.urls]
28
28
  Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/langfuse#readme"
@@ -5,7 +5,6 @@ from datetime import datetime
5
5
  from typing import Any, Dict, Iterator, List, Optional, Union
6
6
 
7
7
  from haystack import logging
8
- from haystack.components.generators.openai_utils import _convert_message_to_openai_format
9
8
  from haystack.dataclasses import ChatMessage
10
9
  from haystack.tracing import Span, Tracer
11
10
  from haystack.tracing import tracer as proxy_tracer
@@ -83,14 +82,14 @@ class LangfuseSpan(Span):
83
82
  return
84
83
  if key.endswith(".input"):
85
84
  if "messages" in value:
86
- messages = [_convert_message_to_openai_format(m) for m in value["messages"]]
85
+ messages = [m.to_openai_dict_format() for m in value["messages"]]
87
86
  self._span.update(input=messages)
88
87
  else:
89
88
  self._span.update(input=value)
90
89
  elif key.endswith(".output"):
91
90
  if "replies" in value:
92
91
  if all(isinstance(r, ChatMessage) for r in value["replies"]):
93
- replies = [_convert_message_to_openai_format(m) for m in value["replies"]]
92
+ replies = [m.to_openai_dict_format() for m in value["replies"]]
94
93
  else:
95
94
  replies = value["replies"]
96
95
  self._span.update(output=replies)