POML: Structured Prompt Engineering for LLMs with a Markup Language

This repository profile is provided by osrepos.com, an open source repository discovery platform.

POML: Structured Prompt Engineering for LLMs with a Markup Language

Summary

POML (Prompt Orchestration Markup Language) is a novel markup language developed by Microsoft for advanced prompt engineering. It brings structure, maintainability, and versatility to LLM applications by addressing common challenges like unstructured prompts and complex data integration. Developers can systematically organize prompt components, integrate diverse data types, and manage presentation variations for more sophisticated and reliable LLM interactions.

Repository Information

Analyzed by OSRepos on January 25, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

POML (Prompt Orchestration Markup Language) is a novel markup language developed by Microsoft, designed to bring structure, maintainability, and versatility to advanced prompt engineering for Large Language Models (LLMs). It addresses common challenges in prompt development, such as lack of structure, complex data integration, and format sensitivity. POML empowers developers to create more sophisticated and reliable LLM applications by providing a systematic way to organize prompt components, integrate diverse data types seamlessly, and manage presentation variations. Key features include structured prompting markup, comprehensive data handling, decoupled presentation styling, an integrated templating engine, and a rich development toolkit.

Installation

Getting started with POML is straightforward, whether you prefer a Visual Studio Code extension or SDKs for Node.js and Python.

Visual Studio Code Extension

Install the POML extension directly from the Visual Studio Code Marketplace. After installation, ensure you configure your preferred LLM model, API key, and endpoint within the extension settings to enable prompt testing.

Node.js (via npm)

npm install pomljs

Python (via pip)

pip install poml

For more detailed installation instructions, including nightly builds, please refer to the official documentation.

Examples

Here is a simple POML example that demonstrates defining a role, a task, including an image, and specifying an output format for an LLM.

<poml>
  <role>You are a patient teacher explaining concepts to a 10-year-old.</role>
  <task>Explain the concept of photosynthesis using the provided image as a reference.</task>

  <img src="photosynthesis_diagram.png" alt="Diagram of photosynthesis" />

  <output-format>
    Keep the explanation simple, engaging, and under 100 words.
    Start with "Hey there, future scientist!".
  </output-format>
</poml>

This example illustrates how POML allows for clear separation of concerns, making prompts more readable and manageable. With the POML toolkit, this prompt can be easily rendered and tested with a vision LLM.

Why Use POML

POML offers significant advantages for anyone working with LLMs, from individual developers to large teams:

  • Structured Prompting: Employs an HTML-like syntax with semantic components, such as <role>, <task>, and <example>, promoting modular design and enhancing prompt readability, reusability, and maintainability.
  • Comprehensive Data Integration: Incorporates specialized data components like <document>, <table>, and <img> to seamlessly embed or reference external data sources, including text files, spreadsheets, and images, with customizable formatting options.
  • Decoupled Presentation Styling: Features a CSS-like styling system that separates content from presentation. This allows developers to modify styling, such as verbosity or syntax format, via <stylesheet> definitions or inline attributes without altering core prompt logic, effectively mitigating LLM format sensitivity.
  • Dynamic Prompt Generation: Includes a built-in templating engine with support for variables ({{ }}), loops (for), conditionals (if), and variable definitions (<let>) for dynamically generating complex, data-driven prompts.
  • Rich Development Toolkit: Provides an essential IDE extension for Visual Studio Code, offering syntax highlighting, context-aware auto-completion, real-time previews, inline diagnostics, and integrated interactive testing. SDKs for Node.js and Python ensure seamless integration into various application workflows.

Links

Explore POML further through these official resources:

Related repositories

Similar repositories that may be relevant next.

SwarmLLM: Run Local AI Models and Team Up for Giant Distributed Inference

SwarmLLM: Run Local AI Models and Team Up for Giant Distributed Inference

October 2, 2026

SwarmLLM is a free, open-source application that allows you to run AI chat models directly on your own computer. It uniquely enables multiple computers to team up over the internet, collectively running models too large for a single machine. This platform offers an OpenAI and Anthropic-compatible API, all without requiring accounts or cryptocurrency.

aillmdecentralized
OpenCompany: Run a Hive Mind of AI Agents for Your Business

OpenCompany: Run a Hive Mind of AI Agents for Your Business

September 30, 2026

OpenCompany is a Rust-powered platform that enables a single operator to run an entire business using a "hive mind" of AI agents. It orchestrates specialized agents to handle various company functions, allowing the human operator to focus on vision and critical decisions. This innovative approach moves beyond traditional multi-agent systems, fostering concurrent deliberation and task completion.

agent-orchestrationai-agentsautonomous-agents
Open ACE: Self-Hosted AI Coding Agent Workspace and Governance Platform

Open ACE: Self-Hosted AI Coding Agent Workspace and Governance Platform

September 28, 2026

Open ACE is an open-source, self-hosted platform designed for managing AI coding agents within enterprise environments. It provides a unified workspace for various AI tools, enabling remote execution and robust governance features for API keys, costs, and compliance. This platform is ideal for organizations integrating AI coding agents into their development workflows, especially those requiring private deployment and centralized control.

ai-governanceai-workspaceenterprise-ai
Graphon: A Python Graph Execution Engine for Agentic AI Workflows

Graphon: A Python Graph Execution Engine for Agentic AI Workflows

September 26, 2026

Graphon is an innovative Python-based graph execution engine designed for building agentic AI workflows. It provides a robust framework for orchestrating complex AI tasks, featuring event-driven execution, graph validation, and shared runtime state. This evolving repository already includes a functional engine, built-in nodes, and end-to-end examples for developers.

agentaidify

Source repository

Open the original repository on GitHub.

13 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️