Skip to main content

POMA AI Logo

POMA: Preserving Optimal Markdown Architecture

Quick-Start Guide

Installation

Requires Python 3.11+. Install the core package:

pip install poma

For different integrations:

pip install 'poma[langchain]'
pip install 'poma[llamaindex]'
pip install 'poma[qdrant]'

# Or LangChain/LlamaIndex/Qdrant including example extras:
pip install 'poma[all]'
  • You may also want: pip install python-dotenv to load API keys from a .env file.
  • The client reads its API key from the POMA_API_KEY environment variable (or api_key=).
  • Create a key in the POMA console at https://console.poma-ai.com, tab Project settings.
  • This release talks to the POMA API v4 (https://api.poma-ai.com/v4).

Usage

from poma import PrimeCut, generate_cheatsheets

pc = PrimeCut(api_key="your_key")

# Ingest a document — submits the file, polls, and returns typed results
result = pc.ingest("document.pdf")

print(result.chunksets[0])
print(result.chunks[0].content)

To test this flow from the command line (requires POMA_API_KEY in the environment):

python -m poma document.pdf          # ingest document.pdf
python -m poma path/to/file.pdf      # custom file

Eco ingestion was retired on 2026-07-16: every job runs the full pipeline at the standard price. ingest_eco() and submit(..., eco=True) still run, as deprecated aliases of ingest() / submit(), and emit a FutureWarning.

Generate cheatsheets as a top-level utility:

cheatsheets = generate_cheatsheets(
    relevant_chunksets=result.chunksets,
    all_chunks=result.chunks,
)
print(cheatsheets[0]["content"])

If you already have a .poma archive, unpack it directly:

from poma import unpack

archived_result = unpack("document.poma")
print(archived_result.chunks[0].content)

Async clients use the same API shape:

import asyncio

from poma import AsyncPrimeCut


async def main() -> None:
    async with AsyncPrimeCut(api_key="your_key") as pc:
        result = await pc.ingest("document.pdf")
        print(result.chunksets[0])


asyncio.run(main())

Hosted indexing and hybrid search (formerly Grill, poma.Grill) is now a separate package with its own API and repository, poma-ai/index4ai-sdk:

pip install index4ai

poma itself covers PrimeCut chunking and the LangChain / LlamaIndex / Qdrant integrations.

Example Implementations

All examples, integrations, and additional information can be found in our GitHub repository: poma-ai/poma

We provide example implementations to help you get started with POMA AI:

  • example.py — A standalone implementation for documents, showing the basic POMA AI workflow with simple keyword-based retrieval
  • example_langchain.py — Integration with LangChain, demonstrating how easy it is to use POMA AI with LangChain
  • example_llamaindex.py — Integration with LlamaIndex, showing how simple it is to use POMA AI with LlamaIndex

Note: The integration examples use OpenAI embeddings. Make sure to set your OPENAI_API_KEY environment variable, or replace the embeddings with your preferred ones.

All examples follow the same two-phase process (ingest → retrieve) but demonstrate different integration options for your RAG pipeline.

! Please do NOT send any sensitive and/or personal information to POMA AI endpoints without having a signed contract & DPA !

Metadata

Release files for poma 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poma 0.9.1
File Size Uploaded Provenance Actions
poma-0.9.1.tar.gz 53.7 kB With provenance Details for poma-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for poma 0.9.1
File Interpreter ABI Platform Actions
poma-0.9.1-py3-none-any.whl Python 3 none any Details for poma-0.9.1-py3-none-any.whl

Total release size: 101.7 kB

Release files / poma-0.9.1.tar.gz

Download URL poma-0.9.1.tar.gz
Size 53.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be9125e7915747402305fe8c54114c0763ab27c73cc97099d74a5e119f266ee4
BLAKE2b-256 checksum
How to use checksums
aea7754cbfbaf7cc19bed3837dda19f7c46d4e2f806ccf5c440f00955c7e0804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / poma-0.9.1-py3-none-any.whl

Download URL poma-0.9.1-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b511faf4c6ff21dc4bf73e4f102104037484ffeb18e389b401e79c76f632c121
BLAKE2b-256 checksum
How to use checksums
4398fb50163bc6b7e24a8f6f9507ad577f5e1ff27053319197c5e9afade2b6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for poma 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for poma-0.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page