Skip to main content

POMA AI Logo

POMA: Preserving Optimal Markdown Architecture

Quick-Start Guide

Installation

Requires Python 3.10+. 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.8.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.8.1
File Size Uploaded Provenance Actions
poma-0.8.1.tar.gz 52.4 kB With provenance Details for poma-0.8.1.tar.gz

Built distribution (wheel)

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

Total release size: 100.3 kB

Release files / poma-0.8.1.tar.gz

Download URL poma-0.8.1.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15fbcde632d19ca674b9e1e30361c20272fcc722e5b23564bb572c84feebdf13
BLAKE2b-256 checksum
How to use checksums
64cf6ec96730955ff3f2b0a647b7aa0b66b59529d79260993575b6c8929ac186
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 Oct 27, 2026.

Transparency log

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

Download URL poma-0.8.1-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a72d5a749ba89225dae3d6f1cb16b5f6bdd4e21114b4de1875c5a163bad2942
BLAKE2b-256 checksum
How to use checksums
dd6b7c994eacd4c2a2ff6e63aa108bec4a8047503a107a0c2ac31fb749891d28
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 Oct 27, 2026.

Transparency log

Security for poma 0.8.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.8.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 Oct 27, 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