• bitcoinBitcoin(BTC)$77,076.000.35%
  • ethereumEthereum(ETH)$2,102.60-0.83%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$658.520.23%
  • rippleXRP(XRP)$1.35-0.58%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$85.34-0.75%
  • tronTRON(TRX)$0.3652600.83%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.00%
  • dogecoinDogecoin(DOGE)$0.102363-0.67%
  • HyperliquidHyperliquid(HYPE)$61.820.99%
  • USDSUSDS(USDS)$1.00-0.04%
  • zcashZcash(ZEC)$656.412.97%
  • leo-tokenLEO Token(LEO)$10.05-0.40%
  • cardanoCardano(ADA)$0.242341-1.41%
  • moneroMonero(XMR)$397.422.40%
  • bitcoin-cashBitcoin Cash(BCH)$347.46-2.57%
  • chainlinkChainlink(LINK)$9.45-1.52%
  • whitebitWhiteBIT Coin(WBT)$56.810.13%
  • CantonCanton(CC)$0.1656312.71%
  • stellarStellar(XLM)$0.147212-1.16%
  • USD1USD1(USD1)$1.00-0.03%
  • the-open-networkToncoin(TON)$1.76-2.69%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • daiDai(DAI)$1.00-0.01%
  • suiSui(SUI)$1.03-3.70%
  • litecoinLitecoin(LTC)$52.75-1.28%
  • avalanche-2Avalanche(AVAX)$9.21-2.01%
  • hedera-hashgraphHedera(HBAR)$0.088349-1.61%
  • MemeCoreMemeCore(M)$2.86-0.55%
  • RainRain(RAIN)$0.0075960.12%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • shiba-inuShiba Inu(SHIB)$0.000006-1.56%
  • nearNEAR Protocol(NEAR)$2.380.27%
  • crypto-com-chainCronos(CRO)$0.068857-0.94%
  • Circle USYCCircle USYC(USYC)$1.130.00%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • tether-goldTether Gold(XAUT)$4,551.790.88%
  • BittensorBittensor(TAO)$274.49-2.26%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • OndoOndo(ONDO)$0.4455112.75%
  • uniswapUniswap(UNI)$3.38-2.09%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.13%
  • mantleMantle(MNT)$0.65-2.21%
  • pax-goldPAX Gold(PAXG)$4,559.690.52%
  • polkadotPolkadot(DOT)$1.25-3.09%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.060547-2.20%
  • AsterAster(ASTER)$0.713.54%
  • HTX DAOHTX DAO(HTX)$0.0000020.60%
  • Falcon USDFalcon USD(USDF)$1.00-0.04%
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

YOU MAY ALSO LIKE

Google, Blackstone to Create AI Cloud Firm

SpaceX’s IPO to Mint Millionaires in Poor Texas Border Town

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

ShareTweetSendSharePin

Related Posts

Google, Blackstone to Create AI Cloud Firm
AI & Technology

Google, Blackstone to Create AI Cloud Firm

May 25, 2026
SpaceX’s IPO to Mint Millionaires in Poor Texas Border Town
AI & Technology

SpaceX’s IPO to Mint Millionaires in Poor Texas Border Town

May 25, 2026
SoftBank’s  Billion OpenAI Bet Sparks Concerns
AI & Technology

SoftBank’s $60 Billion OpenAI Bet Sparks Concerns

May 25, 2026
Need to Fill US Manufacturing Gap Long-Term, Says Amca CEO
AI & Technology

Need to Fill US Manufacturing Gap Long-Term, Says Amca CEO

May 25, 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
One Model, Three Modalities: ByteDance Releases Lance for Image and Video Understanding, Generation, and Editing

One Model, Three Modalities: ByteDance Releases Lance for Image and Video Understanding, Generation, and Editing

May 21, 2026
SoftBank Founder’s Starstruck Bet on OpenAI Raises Concern

SoftBank Founder’s Starstruck Bet on OpenAI Raises Concern

May 25, 2026
I Owe ,000 at 30% Interest (I Only Make ,200 a Month)

I Owe $30,000 at 30% Interest (I Only Make $3,200 a Month)

May 20, 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!