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.

Evidently: Open-Source ML and LLM Observability Framework

Evidently: Open-Source ML and LLM Observability Framework

June 30, 2026

Evidently is an open-source Python library designed for evaluating, testing, and monitoring machine learning and large language model systems. It provides over 100 built-in metrics for various tasks, from data drift detection to LLM judges, supporting both tabular and text data. This framework helps ensure the quality and performance of AI-powered systems throughout their lifecycle.

data-sciencemachine-learningllm
Guardrails: Enhancing LLM Reliability and Structured Data Generation

Guardrails: Enhancing LLM Reliability and Structured Data Generation

June 26, 2026

Guardrails is a Python framework designed to build reliable AI applications by adding guardrails to large language models. It helps detect, quantify, and mitigate risks in LLM inputs/outputs, and facilitates the generation of structured data. This framework ensures more predictable and safer interactions with AI models.

aifoundation-modelllm
Loop Engineering: Orchestrating AI Agents with Practical Patterns and Tools

Loop Engineering: Orchestrating AI Agents with Practical Patterns and Tools

June 25, 2026

Loop Engineering is a GitHub repository offering practical patterns, starters, and CLI tools for building robust AI coding agent systems. It shifts the focus from individual prompt crafting to designing control systems that orchestrate agents over time. This project empowers developers to create autonomous, iterative AI workflows for various development tasks.

agentic-aiai-agentsloop-engineering
MarkLLM: An Open-Source Toolkit for LLM Watermarking

MarkLLM: An Open-Source Toolkit for LLM Watermarking

June 23, 2026

MarkLLM is an open-source toolkit designed to simplify the research and application of watermarking technologies for large language models (LLMs). It offers a unified framework for implementing various watermarking algorithms, alongside robust visualization and comprehensive evaluation tools. This toolkit helps researchers and the broader community understand and assess the authenticity and origin of machine-generated text.

large-language-modelsllmsafety

Source repository

Open the original repository on GitHub.

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 ❤️