August 2023 Summaries
10 posts from Neon
Filter
Month:
Year:
Post Summaries
Back to Blog
The YC idea matcher app uses semantic search to provide users with a list of similar companies that have invested in their startup ideas. It achieves this through the use of vector embeddings and vector similarity search, which allows it to understand the meaning behind user queries and retrieve relevant results. The app generates vector embeddings using OpenAI's Embeddings API and stores them in a Neon database, which is then used for similarity searches. The Postgres extension pg_embedding is used to perform these similarities searches efficiently. The app uses Next.js for its frontend and serverless edge functions on Vercel for its backend. Overall, the app demonstrates how semantic search can be applied to real-world problems using AI technologies like OpenAI, Neon, and pg_embedding.
Aug 25, 2023
1,269 words in the original blog post.
An AI-powered app was developed by integrating OpenAI, Neon, and pg_embedding to enable semantic search experiences, allowing users to submit startup ideas and receive a list of similar companies funded by Y Combinator. The app leverages semantic search to understand the meaning behind search queries using vector embeddings, which represent unstructured data and measure text relatedness through vector similarity. The OpenAI Embeddings API generates these embeddings, and pg_embedding, a Postgres extension, facilitates vector similarity searches by storing and retrieving vector data. The app's development involved gathering company data from the Y Combinator API, generating embeddings for each company's description, and storing them in a Neon database. The frontend, built with Next.js, captures user input and sends it to an API endpoint, which then returns a list of similar companies. The API, deployed on Vercel, uses Neon for database queries, Upstash for rate limiting, and Zod for request validation, ultimately providing fast results that could be optimized further with indexing for larger datasets.
Aug 25, 2023
2,400 words in the original blog post.
json-custom-numbers` is a conformant, performant, flexible custom JSON parser and stringifier for JavaScript. It's designed to parse large numbers from Postgres JSON values in a way that works around the limitations of native `JSON.parse()` implementations. The library offers several features, including support for non-recursive parsing, customizable number parsing, and an option to set a maximum depth limit for parsing or stringifying deeply nested structures. Overall, it's a useful tool for developers working with Postgres JSON values in JavaScript applications.
Aug 24, 2023
2,617 words in the original blog post.
In a detailed exploration of JSON parsing challenges between Postgres and JavaScript, the author introduces a new JavaScript library, json-custom-numbers, designed to handle the differences in number representation between the two systems. As JavaScript only supports IEEE 754 float64 numbers, while Postgres supports a wider range of number types, parsing issues can arise, especially with large numbers like bigint. Existing solutions, json-bigint and lossless-json, offer partial solutions but lack full conformance to native JSON.parse() behavior and vary significantly in performance. The json-custom-numbers library is presented as a more effective alternative, offering conformance to JSON.parse(), improved performance, and the flexibility to customize number parsing, addressing the specific issue of handling big numbers. The article delves into the technical aspects of developing the library, including the use of sticky regular expressions for performance gains and non-recursive implementations to avoid call stack limitations. The author also shares insights gained during the development process, highlighting the importance of experimentation and the influence of JavaScript engine optimizations on performance benchmarking.
Aug 24, 2023
2,884 words in the original blog post.
This guide explains how to create a Neon branch for every Qovery preview environment. Preview environments allow developers to build features in parallel without affecting each other and enable frequent small releases. Neon, a fully managed serverless Postgres, addresses the challenges of working with preview environments by enabling isolated copies of data on demand. The integration process involves creating a project in Neon, setting up lifecycle jobs in Qovery, and configuring environment variables for the lifecycle job.
Aug 11, 2023
1,450 words in the original blog post.
The guide provides a comprehensive walkthrough on creating Neon branches for preview environments on Qovery, a cloud infrastructure automation platform. It explores the challenges of managing databases within preview environments, particularly the issues arising from using shared databases or provisioned copies, and introduces Neon as a solution that allows isolated data copies on demand, enhancing data management efficiency. Neon is a serverless Postgres that automatically scales resources based on workload, separating storage and compute, and its branching capability allows data to be treated like code, facilitating development and testing without data replication. The guide details the process of integrating Neon with Qovery, including setting up lifecycle jobs that automate the creation and deletion of Neon branches using scripts, and provides instructions on configuring the necessary environment variables and Dockerfiles. The guide underscores the advantages of using Neon for database management in preview deployments, emphasizing its cost-effectiveness and ease of use, while also encouraging feedback on other deployment providers or CI/CD tools for future coverage.
Aug 11, 2023
1,838 words in the original blog post.
pg_embedding is a Postgres extension that provides Hierarchical Navigable Small Worlds (HNSW) indexes for vector similarity search, significantly improving query performance compared to traditional IVFFlat indexing. The latest version of pg_embedding now supports on-disk HNSW index construction, cosine similarity, Manhattan distance, and Euclidean distance, enabling faster queries and reduced storage requirements. This new release allows users to take full advantage of Neon features, including autoscaling, scaling to zero, read replicas, and serverless architecture, making it ideal for building scalable AI and LLM applications. By persisting the index on disk, users can sacrifice some performance but gain scalability and flexibility, while leveraging read replicas and the Neon serverless driver to reduce query latencies and costs.
Aug 03, 2023
892 words in the original blog post.
The latest update to pg_embedding, a Postgres extension, introduces enhancements such as on-disk HNSW indexing, which allows for faster and more accurate vector similarity searches compared to traditional methods. With support for cosine similarity, Manhattan, and Euclidean distances, the extension eliminates the need for external vector stores in AI and LLM applications, making it easier to manage vector embeddings directly within Postgres. Additionally, the integration with Neon's serverless architecture enables automatic scaling, cost efficiency, and reduced query latencies, leveraging features like autoscaling and regional read replicas to handle read-heavy workloads effectively. Despite the trade-off in performance between in-memory and on-disk indices, the on-disk implementation facilitates scalable application development by optimizing resource utilization. Users are encouraged to explore the extension's new capabilities, which are designed to enhance the scalability and efficiency of AI applications on the Neon platform.
Aug 03, 2023
1,058 words in the original blog post.
Neon has raised $46 million in funding to advance its Serverless Postgres offering in the cloud. The company aims to become the default provider of Postgres in the cloud by providing a simplified and integrated solution for modern developers. Neon's focus on innovation, particularly in areas like Serverless, Edge Functions, and Vector Search, positions it well to compete with major cloud vendors. With its goal of becoming the database of choice for the modern developer cloud, Neon is targeting companies looking for a stable, functional, and open-source relational database solution.
Aug 02, 2023
974 words in the original blog post.
Neon, a two-year-old company, has raised $46 million to advance its serverless Postgres offering in the cloud, aiming to become the default choice for developers seeking a modern database infrastructure. Despite the dominance of major cloud hyperscalers, Neon positions itself as a streamlined alternative by focusing on serverless Postgres and innovative features like Edge Functions and Vector Search. The company capitalizes on the widespread adoption of Postgres, which is favored for its stability and open-source nature, and aims to simplify developer workflows and database operations. Neon partners with companies like Vercel, Replit, and Hasura and provides a solution for those looking to distribute or embed Postgres within their platforms. Neon's strategy is to gradually expand its capabilities and become the go-to database for modern cloud developers, leveraging its partnerships and innovative offerings to capture market share from larger cloud providers.
Aug 02, 2023
1,065 words in the original blog post.