You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: ensure compatibility with the latest Langfuse version (#93)
This pull request introduces significant updates to the RAG
infrastructure and evaluation codebase, primarily focused on improving
Langfuse integration, updating dependencies, and refactoring
configuration for external service management. The changes enhance
traceability, simplify environment setup, and ensure compatibility with
the latest Langfuse version.
**Langfuse Integration and Evaluation Refactor:**
* Refactored the Langfuse evaluation workflow in
`langfuse_ragas_evaluator.py` to use context managers
(`start_as_current_generation` and `run`) for better trace and
generation handling, and replaced manual scoring and linking with direct
trace scoring.
[[1]](diffhunk://#diff-fe148c64db46f85d0ef8df1dfbebe80d8a816c2025bef7c15f7ae9282457ac81R165-R198)
[[2]](diffhunk://#diff-fe148c64db46f85d0ef8df1dfbebe80d8a816c2025bef7c15f7ae9282457ac81L213-R219)
* Updated the dataset creation method to use the new Langfuse API
signature (`create_dataset(name=...)`).
**Dependency Updates:**
* Upgraded the `langfuse` Python package from `3.0.0` to `3.3.4` across
all relevant `pyproject.toml` files for improved compatibility and
features.
[[1]](diffhunk://#diff-9c5aeb0db77c2eec077d07ddc3b3810ae1a4a1e50ee7061fba37a46706c513fbL107-R107)
[[2]](diffhunk://#diff-9c4162cc1c16dd4c7ec5e95e79df285e8c0882a1db7ff2892c746a0537d26c36L34-R34)
[[3]](diffhunk://#diff-b19ab043535569caf9345971969d115d6515ae951a21b00a278145a28230fba1L21-R21)
**Infrastructure Configuration Improvements:**
* Updated the Langfuse Helm chart dependency version from `0.12.1` to
`1.5.1` in `Chart.yaml`.
* Overhauled `values.yaml` to externalize configuration for PostgreSQL,
Redis (KeyDB), ClickHouse, and S3/MinIO, removing embedded environment
variable definitions and introducing dedicated configuration sections
for each service.
[[1]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L448-R480)
[[2]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L482-R497)
[[3]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3R512-R582)
* Removed internal deployment of MinIO and Valkey, and clarified that
KeyDB is used for Redis functionality.
[[1]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L448-R480)
[[2]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L540-L543)
[[3]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3R615-R619)
**Tracing Enhancements:**
* Improved tracing in `traced_runnable.py` by updating span names to
reflect the actual chain class and including input/output in the trace,
enabling more detailed observability.
0 commit comments