Laminar: Open-Source DataDog + PostHog for LLM Apps in Rust

BY Mark Howell 5 September 20243 MINS READ
article cover

Laminar is an open-source platform designed to provide observability, analytics, evaluations, and prompt chains for complex LLM (Large Language Model) applications. Essentially, it combines the functionalities of DataDog and PostHog but is tailored specifically for LLM applications. Written in Rust, Laminar promises to be fast, reliable, and insightful. The project is currently in progress and will see frequent updates.

Laminar Cloud

The easiest way to get started with Laminar is through the Laminar Cloud, which offers a generous free tier on its managed platform. You can access it at lmnr.ai.

Self-Hosting with Docker Compose

For those who prefer self-hosting, Laminar can be started locally using Docker Compose. This setup will spin up several containers necessary for running Laminar.

Instrumenting Python Code

To get started with instrumenting your Python code, you need to:

  1. Create a project and generate a Project API Key.

  2. Automatically instrument LLM calls of popular frameworks and LLM provider libraries by adding specific configurations.

  3. Use the @observe() decorator to trace inputs and outputs of functions.
    You can send events in two ways, and to run an evaluation event, you need to create an evaluator pipeline and a target version for it. Laminar processes background job queues of pipeline processes and records outputs as events.

Creating and Managing Pipelines

Laminar allows you to create pipelines in the UI and manage chains of LLM calls. Once your pipeline is ready, you can deploy it by selecting the target version. You can then call it from Python with just a few lines of code.

Learn More

To get a deeper understanding of how to instrument your code and use Laminar effectively, you can check out the client libraries and follow the docs and tutorials.

Description: Screenshot of Laminar's user interface showing the dashboard and analytics features.

About Laminar

Laminar is an open-source platform combining the best of DataDog and PostHog for AI agents and RAG (Retrieval-Augmented Generation) apps. Written in Rust and part of YC S24, Laminar aims to provide a fast, reliable, and insightful solution for complex LLM applications.

Remember these 3 key ideas for your startup:

  • Leverage Open-Source Tools: Utilizing open-source platforms like Laminar can significantly reduce costs while providing robust functionalities for observability, analytics, and evaluations. This is crucial for startups looking to optimize their resources without compromising on quality. For more insights on how to make the most of open-source tools, check out this guide to sharing media files.

  • Simplify Complex Processes: Laminar offers a straightforward way to manage and deploy pipelines for LLM applications. This can save valuable time and effort, allowing your team to focus on core business activities rather than getting bogged down by technical complexities. Learn more about simplifying project management with task automation.

  • Enhance Productivity with Automation: The ability to automatically instrument LLM calls and trace function inputs/outputs can streamline your development process. This not only improves efficiency but also ensures that your applications are running optimally. Discover the best tools for enhancing productivity in this list of top developer productivity tools.


Edworking is the best and smartest decision for SMEs and startups to be more productive. Edworking is a FREE superapp of productivity that includes all you need for work powered by AI in the same superapp, connecting Task Management, Docs, Chat, Videocall, and File Management. Save money today by not paying for Slack, Trello, Dropbox, Zoom, and Notion. For more information, visit Edworking.
---
For more information, visit Laminar's documentation and start leveraging this powerful tool for your startup today!
For more details, see the original source.

article cover
About the Author: Mark Howell Linkedin

Mark Howell is a talented content writer for Edworking's blog, consistently producing high-quality articles on a daily basis. As a Sales Representative, he brings a unique perspective to his writing, providing valuable insights and actionable advice for readers in the education industry. With a keen eye for detail and a passion for sharing knowledge, Mark is an indispensable member of the Edworking team. His expertise in task management ensures that he is always on top of his assignments and meets strict deadlines. Furthermore, Mark's skills in project management enable him to collaborate effectively with colleagues, contributing to the team's overall success and growth. As a reliable and diligent professional, Mark Howell continues to elevate Edworking's blog and brand with his well-researched and engaging content.

Trendy NewsSee All Articles
CoverVisual Prompt Injections: Essential Guide for StartupsThe Beginner's Guide to Visual Prompt Injections explores vulnerabilities in AI models like GPT-4V, highlighting security risks for startups and offering strategies to mitigate potential data compromises.
BY Mark Howell 2 mo ago
CoverGraph-Based AI: Pioneering Future Innovation PathwaysGraph-based AI, developed by MIT's Markus J. Buehler, bridges unrelated fields, revealing shared complexity patterns, accelerating innovation by uncovering novel ideas and designs, fostering unprecedented growth opportunities.
BY Mark Howell 2 mo ago
CoverRevolutionary Image Protection: Watermark Anything with Localized MessagesWatermark Anything enables embedding multiple localized watermarks in images, balancing imperceptibility and robustness. It uses Python, PyTorch, and CUDA, with COCO dataset, under CC-BY-NC license.
BY Mark Howell 2 mo ago
CoverJungle Music's Role in Shaping 90s Video Game SoundtracksJungle music in the 90s revolutionized video game soundtracks, enhancing fast-paced gameplay on PlayStation and Nintendo 64, and fostering a cultural revolution through its energetic beats and immersive experiences.
BY Mark Howell 2 mo ago
CoverMastering Probability-Generating Functions: A Guide for EntrepreneursProbability-generating functions (pgfs) are mathematical tools used in probability theory for data analysis, risk management, and predictive modeling, crucial for startups and SMEs in strategic decision-making.
BY Mark Howell 31 October 2024
CoverMastering Tokenization: Key to Successful AI ApplicationsTokenization is crucial in NLP for AI apps, influencing data processing. Understanding tokenizers enhances AI performance, ensuring meaningful interactions and minimizing Garbage In, Garbage Out issues.
BY Mark Howell 23 October 2024
CoverReviving Connection: What We Lost with the Decline of Letter WritingThe shift from handwritten letters to digital communication has reduced personal connection, depth, and attentiveness, impacting how we communicate and relate in both personal and business contexts.
BY Mark Howell 23 October 2024
CoverLichess Move: Behind-the-Scenes Technical BreakdownWhen you make a move on lichess.org, it triggers real-time data exchanges via WebSocket, updates game state, and ensures seamless gameplay using Redis Pub/Sub and MongoDB.
BY Mark Howell 23 October 2024
Try EdworkingA new way to work from  anywhere, for everyone for Free!
Sign up Now