frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Catsu: A unified Python client for embedding APIs

https://catsu.dev
7•bhavnicksm•2h ago
We open-sourced catsu, a Python client for embedding APIs.

The problem: every embedding provider has a different SDK with different bugs. OpenAI has undocumented token limits. VoyageAI's retry logic was broken until September. Cohere breaks downstream libraries every release. LiteLLM's embedding support is minimal.

catsu provides:

- One API for 11 providers (OpenAI, Voyage, Cohere, Jina, Mistral, Gemini, etc.)

- Bundled database of 50+ models with pricing, dimensions, and benchmark scores

- Built-in retry with exponential backoff

- Automatic cost tracking per request

- Full async support

Example:

```python

import catsu

client = catsu.Client()

response = client.embed(model="voyage-3", input="Hello!")

print(f"Cost: ${response.embeddings}")

print(f"Cost: ${response.usage.cost:.6f}")

```

GitHub: https://github.com/chonkie-inc/catsu

We built this at Chonkie (YC X25) because we needed it badly for our chunking library and to easily switch embeddings for our search product. Apache 2.0.

Comments

lennertjansen•2h ago
nice, this is an annoying problem. does it also provide fallback to switch providers when one isn't available?
bhavnicksm•2h ago
it doesn't right now, but the fallback feature is planned for in a future release. mostly because there's no simple way to handle the classic fallbacks like aws, gcp and azure, and we wanted to spend some time thinking about their DX.
zerodayz•2h ago
this is huge, been wrangling with embedding libraries lately so will def try this out
bhavnicksm•2h ago
thanks! this is still pretty early, please let us know if you face any issues with the library, database or anything else :)
citcho•1h ago
nice library, was looking for something like this for a while, thanks for building this

What Is Claude Code's Plan Mode?

https://lucumr.pocoo.org/2025/12/17/what-is-plan-mode/
1•handfuloflight•3m ago•0 comments

Show HN: Nob – Make your terminal AI-powered

https://github.com/hetpatel-11/nob
1•hkpatel•5m ago•0 comments

Go-boot: bare metal Go UEFI boot manager

https://github.com/usbarmory/go-boot
1•nateb2022•6m ago•0 comments

The game behind the gig economy

https://www.techpolicy.press/the-game-behind-the-gig-economy/
1•anigbrowl•7m ago•0 comments

Judge wants $54M for lost pants

https://www.irishtimes.com/news/judge-wants-54m-for-lost-pants-1.808197
1•austinallegro•8m ago•2 comments

Realistic enterprise security dataset with 23-day APT campaign

https://github.com/gregdiy/cyber_simulation
1•PhantomArmor•9m ago•1 comments

Salesforce is tightening control of its data ecosystem

https://www.cio.com/article/4108001/salesforce-is-tightening-control-of-its-data-ecosystem-and-ci...
1•georgewfraser•9m ago•0 comments

Semiquincentennial $1 Coin Candidate Designs

https://www.usmint.gov/news/media-kit/semiq-dollar-coin
2•DustinEchoes•10m ago•0 comments

Coursera to buy Udemy, creating $2.5B firm to target AI training

https://www.reuters.com/business/coursera-udemy-merge-deal-valuing-combined-firm-25-billion-2025-...
1•elsewhen•12m ago•0 comments

SimpleQA Verified: Reliable Factuality Benchmark to Measure Parametric Knowledge

https://arxiv.org/abs/2509.07968
1•handfuloflight•13m ago•0 comments

Sendspin: Music Experience Protocol

https://www.sendspin-audio.com/
1•jackwilsdon•14m ago•0 comments

The Flag Institute

https://en.wikipedia.org/wiki/Flag_Institute
1•grobie12•14m ago•0 comments

Emergence of Human to Robot Transfer in VLAs

https://www.physicalintelligence.company/research/human_to_robot
1•xfr•15m ago•0 comments

Ask HN: Does anyone understand how Hacker News works?

1•jannesblobel•16m ago•2 comments

Ask HN: Should I start a software foundation (goal: help emergency services)?

1•strgcmc•17m ago•0 comments

PRs aren't enough to debug agent-written code

https://blog.a24z.ai/blog/ai-agent-traceability-incident-response
1•birdculture•17m ago•0 comments

Show HN: TimeBoxer – Track estimation accuracy to fix terrible time planning

https://apps.apple.com/us/app/timeboxer-time-estimator/id6720741072
1•rsmihir3•18m ago•0 comments

Show HN: Muxide – Zero-dep pure Rust MP4 muxer (H.264/H.265/AV1, no FFmpeg)

https://github.com/Michael-A-Kuykendall/muxide
1•MKuykendall•22m ago•1 comments

Five Life Lessons from Finland, Once Again the Happiest Country

https://www.forbes.com/sites/davidnikel/2025/03/20/5-life-lessons-from-finland-once-again-the-wor...
2•teleforce•23m ago•0 comments

Senate Passes Defense Bill as Lawmakers Scramble to Fix D.C. Airport Provision

https://www.wsj.com/politics/national-security/senate-defense-bill-vote-ndaa-41d7d5a1
1•JumpCrisscross•28m ago•0 comments

Show HN: MDXport – Browser-Based Markdown to PDF Using Typst and WASM

https://www.mdxport.com/en/
1•ZacharyZZ•29m ago•0 comments

What to do with out of trust property in California?

https://www.williamhalaw.com/post/12/
1•burritofanatic•33m ago•0 comments

An antiviral defense mechanism may lead to Alzheimer's disease

https://medicalxpress.com/news/2025-12-antiviral-defense-mechanism-alzheimer-disease.html
1•bikenaga•34m ago•1 comments

Notepad++ v8.8.9 release: Vulnerability-fix

https://notepad-plus-plus.org/news/v889-released/
2•Archelaos•36m ago•0 comments

The Chinese AI Iceberg [video]

https://www.youtube.com/watch?v=XFhUI1fphKU
2•lawrenceyan•36m ago•0 comments

Show HN: C-compiler to compile TCC for live-bootstrap

https://github.com/FransFaase/MES-replacement
1•fjfaase•40m ago•0 comments

Jq Language Description

https://github.com/jqlang/jq/wiki/jq-Language-Description
2•behnamoh•41m ago•0 comments

You Look Like Shit > How Are You?

https://andys.blog/you-look-like-shit/
2•andytratt•42m ago•2 comments

Oklo's plan to turn leftover weapons-grade plutonium into a nuclear bridge fuel

https://sherwood.news/tech/inside-oklos-audacious-plan-to-turn-leftover-weapons-grade-plutonium-i...
1•donohoe•44m ago•0 comments

Explaining the Widening Divides in US Midlife Mortality: Is There a Smoking Gun?

https://www.nber.org/papers/w34553
4•bikenaga•45m ago•1 comments