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.0

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.0
File Size Uploaded Provenance Actions
poma-0.9.0.tar.gz 52.8 kB With provenance Details for poma-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 100.7 kB

Release files / poma-0.9.0.tar.gz

Download URL poma-0.9.0.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5c2095af8132924f4c449278014d52d62a8485dc35f991a08430faf431191c53
BLAKE2b-256 checksum
How to use checksums
7c9f5294038474d6d7cfff2d55b4b8a0eb1fab70268334bcc0b4c7719369ad1d
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 6, 2026.

Transparency log

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

Download URL poma-0.9.0-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f0863758301fe5c4bf5f45a9ac551c2eca0286aabb0c2cd07c0afaae3726604
BLAKE2b-256 checksum
How to use checksums
5e76485dac4a79a813147504507441444028f41f57b51df3a65c462caad53d35
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 6, 2026.

Transparency log

Security for poma 0.9.0

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.0.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 6, 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