python
from poma.integrations.llamaindex import (
PomaCheatsheetRetrieverLI,
PomaChunksetNodeParser,
PomaFileReader,
)PomaFileReader
python
PomaFileReader()Load one file or every supported file under a directory into LlamaIndex Document objects.
Method:
load_data(input_path: str | Path) -> list[Document]
PomaChunksetNodeParser
python
PomaChunksetNodeParser(*, client: PrimeCut)Call the POMA API for each input document and return chunkset nodes.
Use the standard parser entrypoint:
get_nodes_from_documents(documents, show_progress: bool = False) -> list[BaseNode]
PomaCheatsheetRetrieverLI
python
PomaCheatsheetRetrieverLI(base: BaseRetriever)Wrap an existing LlamaIndex retriever and turn grouped hits into cheatsheet nodes.
Methods:
as_query_engine(**kwargs)- standard retriever
.retrieve(...)flow