Compute: Released a new
pg_tiktokenPostgreSQL extension, created by the Neon engineering team. The extension is a wrapper for OpenAI’s tokenizer. It provides fast and efficient tokenization of data stored in a PostgreSQL database. The extension supports two functions:
tiktoken_encodefunction takes text input and returns tokenized output, making it easier to analyze and process text data.
tiktoken_countfunction returns the number of tokens in a text, which is useful for checking text length limits, such as those imposed by OpenAI’s language models.
For more information about the
pg_tiktokenextension, refer to the blog post: Announcing pg_tiktoken: A Postgres Extension for Fast BPE Tokenization. The
pg_tiktokencode is available on GitHub.
Compute: Added support for the PostgreSQL
plpgsql_checkextensions. For more information about PostgreSQL extensions supported by Neon, see PostgreSQL extensions.
Compute, Pageserver, Safekeeper: Added support for RS384 and RS512 JWT tokens, used to securely transmit information as JSON objects.
Pageserver: Removed the block cursor cache, which provided little performance benefit and would hold page references that caused deadlocks.
Autoscaling: Added support for scaling Neon's local file cache size when scaling a virtual machine.