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

Announcing pg_tiktoken: A Postgres Extension for Fast BPE Tokenization

Blog post from Neon

Post Details
Company
Date Published
Author
Stas Kelvich
Word Count
775
Company Posts That Month
14
Language
English
Hacker News Points
-
Post removed?
No
Summary

The release of pg_tiktoken, a Postgres extension for fast BPE tokenization, has been announced. This new extension provides efficient text data analysis and processing within Postgres databases using the Byte Pair Encoding (BPE) algorithm. It is a wrapper around OpenAI's tokenizer, known for its speed and performance in natural language processing tasks. The tiktoken_encode function allows users to tokenize text inputs, while the tiktoken_count function returns the number of tokens in a text. Supported models include cl100k_base, p50k_base, p50k_edit, and r50k_base (or gpt2). The extension is optimized for speed and efficiency and supports various text inputs, including multiple languages and special characters.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 1 895 170 78 +67%
Vector Search 1 806 116 54 +110%
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.