Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. OpenJev(openjev.com ↗)
    26comments
  2. Jemalloc 5.4.0(github.com/jemalloc ↗)
    46comments
  3. The scourge of x86 emulation(fex-emu.com ↗)
    27comments
  4. Astra for Law(openai.com ↗)
    586comments
  5. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    135comments
  6. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    223comments
  7. Qwen 3.8 Omni Flash(qwen.ai ↗)
    82comments
  8. Replacing Pull Requests with Delta(zed.dev ↗)
    4comments
  9. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    170comments
  10. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    21comments
  11. When the fractional part of a float fixes your shader(crocidb.com ↗)
    1comments
  12. Wax motor(wikipedia.org ↗)
    71comments
  13. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    40comments
  14. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    234comments
  15. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    155comments
  16. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    11comments
  17. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  18. How to Write with an LLM(sockpuppet.org ↗)
    104comments
  19. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    24comments
  20. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    59comments
  21. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    27comments
  22. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  23. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    44comments
  24. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    370comments
  25. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    108comments
  26. Apple detectives solved mystery of ancient tree and rewrote the history of fruit(scientificamerican.com ↗)
    12comments
  27. The most important product decision is what you don't build(liamnugent.me ↗)
    39comments
  28. Why Does the Universe Expand?(cosmicave.org ↗)
    58comments
  29. CrowdSec Source Code Leak(crowdsec.net ↗)
    49comments
  30. How Uber Protects Against Retry Storms(uber.com ↗)
    44comments

Show HN: Warehouse OpenAI requests to your own database

18 pointsby 2y agousevelvet.com
6 comments
Today we’re launching Velvet, an AI gateway for warehousing OpenAI and Anthropic requests to your PostgreSQL instance.

We originally built an AI SQL editor, but realized that customers were using it to monitor their AI requests in production. We had already built an AI request warehousing tool internally to debug our SQL editor and gave some customers access.

A few days into testing this idea, our pilot customer launched [1] and we began warehousing 1,500 requests per second. We worked closely with their engineering team in the following weeks, completely re-architecting Velvet for scale and additional features (such as Batch support). Along the way, other companies began seeking out Velvet to get visibility into their own LLM requests.

We’re launching our AI gateway as a self-serve product today, but our pilot customers are already warehousing over 3 million requests per week - so the system is stable and performant.

What makes Velvet unique is that you own the data in your own database. Also, we’re the first proxy that gives visibility into OpenAI batch calls - so you can observe and monitor async calls that save you money.

Some technical notes:

- Supports OpenAI and Anthropic endpoints

- Data is formatted as JSON and logged to your own PostgreSQL instance (can add support for other databases for paying customers).

- You can include queryable metadata in the header, such as user ID, org ID, model ID, and version ID.

- Built on Cloudflare workers, which keeps latency minimal (using our caching feature will reduce latency overall)

- Built for security + starting process of SOC II soon

Why warehouse your requests?

- Understand where money is spent. Use custom headers to calculate the cost per customer, model, or service.

- Download real request/response data, so you can evaluate new models (e.g., re-running requests with a cheaper mini model)

- Monitor time to completion of batch jobs. (e.g., OpenAI says 24 hours, but our customers average 3-4 hours)

- Export a subset of example requests for fine-tuning

It’s just a 2 line code change to get started.

Try a sandbox demoing the logging proxy here: https://usevelvet.com/sandbox

More details in our docs https://docs.usevelvet.com

[1] https://news.ycombinator.com/item?id=40801494

2y agoHN ↗

This is great for folks who need to proxy and/or log for compliance and regulatory purposes.

2y agoHN ↗

Yep, we can warehouse directly to your database which makes it secure by default. It's your data and we're never going to train on top of your logs. Plus there's no data abstraction when you want to switch between models or fine-tune your own models.

2y agoHN ↗

Can we please have this as a VS-Code|Cursor Extension such that All copilot operations flow through a dash like this for a personal version of all your code prompting through vscode/cursor/positron.

Then, in positron, you can just have a viewer that can run and graph the queries in the IDE

2y agoHN ↗

A VS code / cursor extension is on our roadmap. Ideally this data is embedded in your workflow so developing with LLMs is seamless. With the current product, we can also warehouse requests directly to your PostgreSQL DB so you can query in your IDE. The SQL editor in our app is just one (optional) way to query the data.

2y agoHN ↗

How about you guys have a friendly with InstanDB folks. :-)

https://news.ycombinator.com/item?id=41322281

There are so fn many amazing tools being shown on HN recently - Im having ShinyObject Overwhelming Tool Envy constantly.

I wonder if there is a method where your system can also act as a memory scratchpad?

Like can I setup rules on how to route the proxied info into my postgres, as you say = so using the InstantDB instaml - I can create rules on how to log and warehouse the promtps.

Do you guys have bestpractice/schema template ideas for meaningful structure of the prompt /request warehouse?

(Whats that called? 'request schema'?)

2y agoHN ↗

If I’m understanding, you’d want to choose which logs to warehouse. That’s a feature we’ll add soon, in case you don’t want to store everything. Like for cost analysis, it’s useful to have every request - but maybe you don’t need to keep them forever.

We structure request/response logs as JSON so they’re queryable, and can work with any model. This also lets you add custom metadata to the header for any unique identifiers you want to include.

An InstanDB integration is possible! Try the proxy out and we can add InstanDB support if it helps you build faster.