Home / Companies / Upstash / Blog / September 2025

September 2025 Summaries

4 posts from Upstash

Filter
Month: Year:
Post Summaries Back to Blog
The blog post outlines a streamlined approach to building an AI assistant for documentation using the AI SDK and Context7, eliminating the need for complex pipelines and maintenance. The process involves creating an assistant API endpoint by integrating with Context7's MCP server, specializing the assistant with a single system prompt for relevant documentation, and utilizing AI SDK's tool calling capabilities for real-time responses. The setup ensures the AI assistant can access up-to-date documentation without hallucination, providing reliable answers by focusing on specified libraries or topics. The post also discusses how to connect this backend setup to a frontend interface using the AI SDK's useChat hook, offering a seamless user experience. Customization options are provided for tailoring the assistant to different libraries or organizational tones, with considerations for production enhancements like rate limiting and caching. This method allows for a quick deployment of a production-ready AI documentation assistant, offering a foundation for further enhancements and customizations.
Sep 17, 2025 2,514 words in the original blog post.
The article details the process of creating a type-safe webhook client using Upstash's QStash, highlighting its seamless integration with open-source projects like Marble, a content management system. It begins by defining possible webhook events using a Zod schema to ensure type safety and autocomplete functionality, which aids developers in sending the correct data when a webhook is triggered. The guide progresses to building a basic webhook client and implementing the send method with QStash, which provides automatic retries, delivery guarantees, and delay management. It also emphasizes security by demonstrating how to sign payloads using HMAC-SHA256 and verifying signatures to ensure the authenticity of webhook requests. The article concludes with a mention of potential enhancements such as timestamp verification to further secure the webhook system.
Sep 04, 2025 1,664 words in the original blog post.
Storing time series data efficiently in Redis is crucial for applications tracking daily metrics, such as stock prices or IoT sensor readings. The exploration starts with basic Redis Lists, which prove inadequate due to challenges with updates and range queries. Sorted Sets offer improvements by using timestamps as scores, but they falter when handling unchanged prices due to their requirement for unique members. Redis Streams, introduced in Redis 5.0, present a more refined solution with natural time ordering, memory efficiency, and support for multiple fields, though they lack native aggregation functions. The ultimate solution is Redis TimeSeries, a module specifically designed for time series data, featuring automatic aggregations and efficient storage, though it is not yet available in Upstash Redis. Currently, Redis Streams are recommended for their balance of performance and functionality, as demonstrated by their use in large-scale applications like QStash and Upstash Workflow, which manage millions of events daily.
Sep 03, 2025 1,569 words in the original blog post.
Context7 is an MCP server designed to enhance the reliability of code generated by Language Learning Models (LLMs) such as Cursor and Windsurf by providing access to a repository of documentation. To combat issues with LLMs producing outdated or incorrect code, Context7 utilizes a library called c7score, which measures the quality of documentation snippets by evaluating their relevance, clarity, and correctness. Initial approaches focused on comparing snippets with their original Github sources, but these were limited in scope and accuracy. The current methodology involves using Gemini's Google Search tool to source documentation from a variety of websites, coupled with a dual LLM-based evaluation to assess syntax, clarity, and information uniqueness. c7score is integrated with Context7 but can also be used independently via npm, offering customizable metrics and methods for evaluating or comparing library documentation. This system ensures that LLMs are guided by high-quality, reliable context, thereby improving the quality of the code they generate.
Sep 01, 2025 926 words in the original blog post.