I love this.
3,884 karma · joined March 14, 2013
building Superuser, come join :)
https://superuser.app
https://x.com/keithwhor
I love this.
Similar to blog post, instead of at the extension layer I built a PostgreSQL ORM for Node.js based on ActiveRecord + Django's ORM that includes the concept of vector fields [0][1] that lets you write code like this:
// Stores the `title` and `content` fields together as a vector
// in the `content_embedding` vector field
BlogPost.vectorizes(
'content_embedding',
(title, content) => `Title: ${title}\n\nBody: ${content}`
);
// Find the top 10 blog posts matching "blog posts about dogs"
// Automatically converts query to a vector
let searchBlogPosts = await BlogPost.query()
.search('content_embedding', 'blog posts about dogs')
.limit(10)
.select();
I find it tremendously useful; you can query the underlying data or the embedding content, and you can define how the fields in the model get stored as embeddings in the first place.[0] https://github.com/instant-dev/orm?tab=readme-ov-file#using-...
[1] https://github.com/instant-dev/orm?tab=readme-ov-file#using-...
Not speaking for OpenAI here, only myself — but this is not an official SDK — only a reference implementation. The included relay is only intended as an example. The issues here will certainly be tackled for the production release of the API :).
I’d love to build something more full-featured here and may approach it as a side project. Feel free to ping me directly if you have ideas. @keithwhor on GitHub / X dot com.
For those that don’t have experience running companies with permissive free tiers, free tiers often act as a honeypot for a certain category of users that (1) don’t and will never pay for your product, (2) complain loudly and often and (3) eat up your support time.
This category of user is equally toxic to any competitor’s platform. The best B2B companies paywall early and set the bar high.
sighs in bitcoin
They can then either act as a distributor and take a marketplace fee or go full Amazon and start competing in their own marketplace.
How many of these things are the wealthiest nations net exporters of — or at least breakeven on, eg they produce enough for self-sustenance?
This error would only be found if you wrote a test for it. The framework doesn't have an AI integration that checks whether or not your types are consistent with real world applications... but could.
And no — type safety is applied at the HTTP interface. API consumers need no special library to get all the benefits.
Edit: Parent added quotation marks and hyphens after my comment. I stand proudly by my cutesy remark.
But OpenAPI is the “gold standard” machine readable API specification format so it makes sense that OpenAI would rely on it!