September 2024 Summaries
6 posts from Portkey
Filter
Month:
Year:
Post Summaries
Back to Blog
OpenAI's new "omni-moderation-latest" model has been introduced as an advanced tool for content moderation, offering significant improvements over its predecessor, especially in multilingual performance and image moderation. The model supports 13 content categories, up from 11, and has demonstrated enhanced accuracy across 40 languages, with notable improvements in low-resource languages like Telugu, Bengali, and Marathi. Although the new model excels in recall, indicating its effectiveness in identifying harmful content, it also has a higher false positive rate, suggesting increased sensitivity. Benchmarking results show that while the legacy model offers higher precision, particularly in avoiding false positives, the new model's strength lies in its ability to handle diverse languages, making it advantageous for global platforms prioritizing user safety. The comparison highlights that both models have similar latency, but the choice between them should depend on specific use cases, with the omni-moderation-latest model being particularly beneficial for platforms requiring robust multilingual moderation capabilities.
Sep 27, 2024
1,678 words in the original blog post.
Portkey has achieved significant milestones, processing over 2 billion requests since its inception just a year ago, and has released three major updates to enhance its platform. The first release, AI Guardrails, addresses unpredictable behavior in AI applications by introducing over 50 state-of-the-art guardrails for synchronous request routing. The second release, Conditional Routing, allows users to route requests based on specific conditions, such as data residency requirements or model preferences. The third release, Tracing, offers a chronological view of agent pipelines with Open Telemetry support for improved instrumentation. Additional updates include Single Sign-On, enhanced routing capabilities, and support for new AI models and integrations, such as Codestral Mamba, GPT-4o-mini, and Vercel. Portkey has also expanded its community engagement through meetups and webinars, while teasing upcoming features like advanced tracing and new tools.
Sep 05, 2024
559 words in the original blog post.
Portkey's decision to use TypeScript over Python and Rust for developing their open-source AI Gateway was pivotal in achieving their goal of creating a high-performance, low-latency system. While Python's familiarity in AI and Rust's performance were considered, TypeScript was chosen for its strong typing, asynchronous capabilities, and ability to compile into optimized JavaScript, making it ideal for deployment on Cloudflare Workers' edge computing platform. This choice allowed for efficient concurrent request handling and integration with WebAssembly for performance-critical sections. The use of TypeScript also facilitated rapid development, error detection, and community engagement, leading to a robust AI Gateway with single-digit millisecond latencies and high reliability, processing over 2 billion requests with strong community support. The decision to adopt TypeScript not only balanced performance and maintainability but also fostered an active open-source community contributing to its continued evolution.
Sep 03, 2024
946 words in the original blog post.
DSPy is a transformative framework designed for optimizing AI pipelines, allowing programmers to shift from manual prompt crafting to focusing on programming AI workflows. By automating the optimization of prompts and weights, DSPy enhances efficiency and reduces the need for intricate manual adjustments, offering benefits in scalability, model portability, and cost management. Its LLM-agnostic nature permits seamless model switching without altering core systems, as demonstrated in its application at Zoro UK, where DSPy was used to standardize product attributes from various suppliers. DSPy's approach to metrics emphasizes clarity and thoughtful design, which enhances overall system architecture. With its focus on scalability, consistency, and adaptability, DSPy is poised to address the evolving challenges in AI deployment, emphasizing the orchestration of AI rather than mere interaction.
Sep 03, 2024
950 words in the original blog post.
Portkey's open-source AI Gateway is revolutionizing how AI applications are deployed in production environments, addressing common challenges such as cost management, model flexibility, operational complexity, and security compliance. By providing a unified API, intelligent routing, and comprehensive monitoring, AI Gateways streamline the transition from AI prototypes to production-ready applications. This middleware solution acts as a universal adapter between applications and various AI models, simplifying integration and enhancing control. MongoDB complements this by offering a flexible, scalable database platform that efficiently manages the vast data AI applications generate. A real-world example is Quizizz, an edtech platform that achieved high uptime and improved AI operations by implementing Portkey's AI Gateway, which streamlined API calls and provided detailed insights into performance and costs. As AI Gateways gain traction, they are becoming essential for businesses to maintain competitive edges by efficiently deploying advanced AI models at scale while ensuring security and optimizing costs.
Sep 01, 2024
1,908 words in the original blog post.
Retrieval-Augmented Generation (RAG) enhances Large Language Models (LLMs) by integrating external data to provide more accurate and relevant responses, addressing the limitations of LLMs which are restricted to their training data. This tutorial demonstrates how to build a production-ready RAG application in 10 minutes using Portkey, MongoDB Atlas, Patronus AI, and LlamaIndex. Portkey serves as an LLM Ops platform offering AI gateway management, observability, and robust guardrails for responsible AI development. MongoDB Atlas provides a cloud database with native vector search capabilities, while LlamaIndex simplifies data ingestion and indexing. Patronus AI evaluates LLM performance and monitors for hallucinations and other unsafe behaviors. The tutorial covers setting up the environment, building a RAG pipeline using McDonald's SEC 10-K filing, configuring document stores and Portkey, and querying the retrieval system. It also addresses challenges such as hallucinations and lack of observability, offering solutions through Portkey's integration with Patronus AI for enhanced guardrails and observability. The tutorial concludes by suggesting improvements like error handling, performance optimization, and scaling strategies to enhance the RAG application's reliability and efficiency.
Sep 01, 2024
923 words in the original blog post.