Home / Companies / SingleStore / Blog / Post Details
Content Deep Dive

Getting OpenAI Embeddings in SQL Using External Functions

Blog post from SingleStore

Post Details
Company
Date Published
Author
Eric Hanson, Kevin Smith, Jeetendra Ranjan
Word Count
2,006
Company Posts That Month
13
Language
English
Hacker News Points
-
Post removed?
No
Summary

SingleStoreDB allows developers to create external functions that can interact with external services, such as OpenAI's vector embedding API. These external functions can be used to get vector embeddings for text data directly from SQL queries, simplifying programming and reducing the need to round-trip data through an application. An example of how this works is shown in the article, where a Flask-based web application hosts an external function that calls OpenAI's vector embedding API to generate embeddings for given text strings. The generated embeddings can then be used to update a vector column in a SQL table in a single UPDATE statement. This approach allows developers to easily incorporate vector data into their applications and take advantage of the power of SQL.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 19 1,593 169 73 +36%
LLM 1 1,948 218 98 +23%
Serverless 1 580 145 74 -23%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.