Langfuse × NeoMundi
NeoMundi's signed behavioural measurement, as scores on the Langfuse trace you already have open.
Quickstart · What it refuses to do · Notebook · Limitations · Cost
Evidence level E2. Two real measurements on 2026-11-26, re-read from the NeoMundi API as persisted, and all six scores re-read from the Langfuse server on both traces. See LIMITATIONS.md §6.
What this is
A bridge, not a second observer. Langfuse keeps the trace; NeoMundi
measures the interaction; NeoMundiLangfuseBridge writes the measurement's
signals onto that trace as Langfuse scores, with the NeoMundi request_id
in each score's metadata so you can go from the trace to the signed record.
It drives the neomundi SDK's result types and Langfuse's own
create_score. It reimplements neither, measures nothing, and never
contacts the NeoMundi API.
What it is not
- Not an evaluator. It transports measurements; it does not interpret them.
- Not a tracer. Langfuse traces. This only adds scores to its traces.
- Not a truth checker. NeoMundi verifies integrity and authenticity, not whether an answer was true.
Install
Not on PyPI yet — pip install langfuse-neomundi does not work. Install
from the repository:
pip install 'git+https://github.com/neomundi-io/neomundi-integrations.git#subdirectory=integrations/langfuse'
Python ≥ 3.11. Depends on langfuse>=5.2.0,<6.0 and neomundi>=2.1.0,<3.0.
Quickstart
bridge = NeoMundiLangfuseBridge(langfuse) # your existing Langfuse client
outcome = bridge.write(trace.close()) # a neomundi TraceRecord or GovernResult
print(outcome.status, outcome.signals_written)
In context, inside a Langfuse observation:
from langfuse import get_client
from neomundi import NeoMundiClient
from langfuse_neomundi import NeoMundiLangfuseBridge
langfuse = get_client()
neomundi = NeoMundiClient(api_key=..., base_url="https://api.neomundi.io")
bridge = NeoMundiLangfuseBridge(langfuse)
with langfuse.start_as_current_observation(name="answer"):
with neomundi.trace(model_name="my-model") as trace:
answer = call_my_llm(question)
trace.record(prompt=question, response=answer, token_count=usage.total_tokens)
bridge.write(trace.close()) # attaches to the active trace
What lands on the trace (exact names, measured offline):
| Score | Type | Written when |
|---|---|---|
neomundi.stability_score |
NUMERIC | the server declared it measured |
neomundi.coherence_score |
NUMERIC | idem |
neomundi.factual_hallucination_score |
NUMERIC | idem |
neomundi.semantic_instability_score |
NUMERIC | idem |
neomundi.semantic_risk |
NUMERIC | idem |
neomundi.measurement |
CATEGORICAL | always: complete, partial, not_attempted, unknown, not_submitted, submitted_no_result |
Each score's metadata carries request_id, measurement_version and the
evaluator provenance. The summary lists what was withheld and why.
With langchain-neomundi: pass bridge.as_outcome_callback() as the
handler's on_outcome. Only the summary is written that way — see
LIMITATIONS.md §3.
Refusals
| Situation | Status | What reaches Langfuse |
|---|---|---|
| A signal not declared measured (even with a conventional value) | queued |
no score for it; listed in the summary |
No trace_id and no active Langfuse trace |
not_written_no_trace |
nothing |
| The measurement was not submitted | queued |
the summary only, not_submitted |
| The input is not a NeoMundi measurement | not_written_unsupported_input |
nothing |
dry_run=True |
dry_run |
nothing; scores returned on the outcome |
| The bridge or the Langfuse client raises | not_written_internal_error |
nothing; the exception type, never its message |
🔴 queued means handed to Langfuse, not delivered. Langfuse drops
scores on an API error without raising. See
LIMITATIONS.md §1.
What it costs
The bridge bills nothing: it never contacts NeoMundi. The measurement
it carries was billed when it was submitted — 0.030 CHF per observation —
so the cost control is wherever you measure (sample_rate in
langchain-neomundi, or your own decision to call client.trace()).
dry_run=True computes every score and hands nothing to Langfuse, so you
can wire the bridge up and read what it would write before enabling it.
Honest status
| Offline test suite | 33 tests, plus 2 composition tests run when langchain-neomundi is installed |
| Real execution | E2 — 2 observations, 2 re-read as persisted, 6/6 scores read back from Langfuse, 0.06 CHF (2026-11-26) |
| Maturity | beta |
Read LIMITATIONS.md before drawing a conclusion from any score.
Running the tests
cd integrations/langfuse
python -m pip install -e ".[dev]"
pytest -q
Offline, no key, no cost. The four Langfuse-failure tests take a few seconds each, because Langfuse really does retry.
License
Apache-2.0. See LICENSE.
Metadata
Release files for langfuse-neomundi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langfuse_neomundi-0.1.0.tar.gz | 17.8 kB | With provenance | Details for langfuse_neomundi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langfuse_neomundi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langfuse_neomundi-0.1.0-py3-none-any.whl |
Total release size: 28.6 kB
Release files / langfuse_neomundi-0.1.0.tar.gz
| Download URL | langfuse_neomundi-0.1.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad7cb3e1465a50efcf8bc199a18ce498d4848dab98b0808b2ec7efbf8fa089a1
|
|
BLAKE2b-256 checksum How to use checksums |
749c28c93ec4cde75da115dc6d034ad1af12823e5e4c9b0d2fc3bf174caf3d17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / langfuse_neomundi-0.1.0-py3-none-any.whl
| Download URL | langfuse_neomundi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
934bfa346989f3989ba56e96d294c9777a7911a7ecc37c91ab814cead2b120e6
|
|
BLAKE2b-256 checksum How to use checksums |
ab2105361bfc954c65ecc15c0a51c7db52fe8f538abb00a2fd4524a6d3703dd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for langfuse-neomundi 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langfuse_neomundi-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.