• bitcoinBitcoin(BTC)$60,564.000.76%
  • ethereumEthereum(ETH)$1,695.960.59%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$554.590.43%
  • usd-coinUSDC(USDC)$1.000.01%
  • rippleXRP(XRP)$0.951.23%
  • solanaSolana(SOL)$71.201.06%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.062.14%
  • tronTRON(TRX)$0.3038810.29%
  • HyperliquidHyperliquid(HYPE)$62.391.55%
  • zcashZcash(ZEC)$703.74-6.79%
  • dogecoinDogecoin(DOGE)$0.0565921.36%
  • moneroMonero(XMR)$457.56-11.83%
  • leo-tokenLEO Token(LEO)$9.080.85%
  • whitebitWhiteBIT Coin(WBT)$61.154.78%
  • chainlinkChainlink(LINK)$9.333.54%
  • USDSUSDS(USDS)$1.000.03%
  • cardanoCardano(ADA)$0.1494022.77%
  • Ethena USDeEthena USDe(USDE)$1.00-0.04%
  • stellarStellar(XLM)$0.127474-0.09%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$210.243.38%
  • nearNEAR Protocol(NEAR)$3.071.54%
  • litecoinLitecoin(LTC)$44.083.92%
  • CantonCanton(CC)$0.075942-1.75%
  • avalanche-2Avalanche(AVAX)$6.620.26%
  • tether-goldTether Gold(XAUT)$3,563.61-0.50%
  • USD1USD1(USD1)$1.00-0.03%
  • uniswapUniswap(UNI)$4.67-1.01%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.970.13%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • suiSui(SUI)$0.670.98%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.0542604.61%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.00%
  • paypal-usdPayPal USD(PYUSD)$1.000.04%
  • quant-networkQuant(QNT)$148.542.93%
  • BittensorBittensor(TAO)$184.231.71%
  • shiba-inuShiba Inu(SHIB)$0.0000041.76%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.12-0.03%
  • Circle USYCCircle USYC(USYC)$1.150.00%
  • crypto-com-chainCronos(CRO)$0.039864-0.49%
  • MemeCoreMemeCore(M)$0.831.66%
  • RainRain(RAIN)$0.002500-8.75%
  • okbOKB(OKB)$82.450.82%
  • Falcon USDFalcon USD(USDF)$1.000.03%
  • United StablesUnited Stables(U)$1.000.03%
  • pax-goldPAX Gold(PAXG)$3,561.68-0.55%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • BitwayBitway(BTW)$1.0011.06%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Build a Complete Langfuse Observability and Evaluation Pipeline for Tracing, Prompt Management, Scoring, and Experiments

May 24, 2026
in AI & Technology
Reading Time: 1 min read
A A
Build a Complete Langfuse Observability and Evaluation Pipeline for Tracing, Prompt Management, Scoring, and Experiments
ShareShareShareShareShare
print("\nPART 5 ── Datasets & experiments --------------------------------------")
DATASET = "capital-cities-tutorial"
langfuse.create_dataset(name=DATASET, description="Capital-city QA benchmark")
_items = [
   ("What is the capital of France?",  "Paris"),
   ("What is the capital of Germany?", "Berlin"),
   ("What is the capital of Japan?",   "Tokyo"),
   ("What is the capital of Italy?",   "Rome"),
]
for i, (q, a) in enumerate(_items):
   langfuse.create_dataset_item(dataset_name=DATASET, id=f"cap-{i}",
                                input={"question": q}, expected_output=a)
def capital_task(*, item, **kwargs):
   question = item.input["question"] if isinstance(item.input, dict) else item.input
   return llm_chat([{"role": "user", "content": question}], name="experiment-answer")
def accuracy(*, input, output, expected_output, metadata=None, **kwargs):
   hit = bool(expected_output) and expected_output.lower() in (output or "").lower()
   return Evaluation(name="accuracy", value=1.0 if hit else 0.0,
                     comment="exact-match contains check")
def conciseness(*, input, output, **kwargs):
   return Evaluation(name="char_length", value=float(len(output or "")))
def mean_accuracy(*, item_results, **kwargs):
   vals = [e.value for r in item_results for e in r.evaluations if e.name == "accuracy"]
   avg = sum(vals) / len(vals) if vals else 0.0
   return Evaluation(name="mean_accuracy", value=avg, comment=f"{avg:.0%} correct")
dataset = langfuse.get_dataset(DATASET)
result = dataset.run_experiment(
   name="capitals-baseline",
   description="Baseline run from the Colab tutorial",
   task=capital_task,
   evaluators=[accuracy, conciseness],
   run_evaluators=[mean_accuracy],
   max_concurrency=4,
)
print(result.format())

Credit: Source link

YOU MAY ALSO LIKE

Backloggd Urges Users To Change Their Passwords After A Breach

1Password Says It Was Hacked But Users’ Vaults Are Safe

ShareTweetSendSharePin

Related Posts

Backloggd Urges Users To Change Their Passwords After A Breach
AI & Technology

Backloggd Urges Users To Change Their Passwords After A Breach

November 26, 2026
1Password Says It Was Hacked But Users’ Vaults Are Safe
AI & Technology

1Password Says It Was Hacked But Users’ Vaults Are Safe

November 26, 2026
Canada Invests 0 Million More to Expand AI Compute Access Fund – Unite.AI
AI & Technology

Canada Invests $700 Million More to Expand AI Compute Access Fund – Unite.AI

November 26, 2026
Workers At GTA 6 Studio Rockstar Games Vote Overwhelmingly Against Union Recognition
AI & Technology

Workers At GTA 6 Studio Rockstar Games Vote Overwhelmingly Against Union Recognition

November 26, 2026
Next Post
Braemar Plc 2026 Q4 – Results – Earnings Call Presentation (OTCMKTS:BSEAF) 2026-05-24

Braemar Plc 2026 Q4 - Results - Earnings Call Presentation (OTCMKTS:BSEAF) 2026-05-24

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
“I Disagree With Your Stance On Debt” (Rachel Hangs Up)

“I Disagree With Your Stance On Debt” (Rachel Hangs Up)

November 22, 2026
Took A Title Loan To Avoid Asking My Husband For Money

Took A Title Loan To Avoid Asking My Husband For Money

November 22, 2026
Virginia and Oregon sue Musk’s Grok AI over creation of child sexual abuse images

Virginia and Oregon sue Musk’s Grok AI over creation of child sexual abuse images

November 24, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!