mellea.stdlib.docs.richdocument
class mellea.stdlib.docs.richdocument.RichDocument(doc: DoclingDocument)
RichDocument
is a block of content with an underlying DoclingDocument.
It has helper functions for working with the document and extracting parts of it.
RichDocument
is a block of content with an underlying DoclingDocument.
mellea.stdlib.docs.richdocument.RichDocument.parts()
RichDocument
has no parts.
mellea.stdlib.docs.richdocument.RichDocument.format_for_llm()
mellea.stdlib.docs.richdocument.RichDocument.docling()
mellea.stdlib.docs.richdocument.RichDocument.to_markdown()
mellea.stdlib.docs.richdocument.RichDocument.get_tables()
Table
s that are a part of this document.
mellea.stdlib.docs.richdocument.RichDocument.save(filename: str | Path)
mellea.stdlib.docs.richdocument.RichDocument.load(filename: str | Path)
mellea.stdlib.docs.richdocument.RichDocument.from_document_file(source: str | Path | DocumentStream)
class mellea.stdlib.docs.richdocument.TableQuery(obj: Table, query: str)
TableQuery
class.
obj
: The table object to which the query applies.query
: The query string.mellea.stdlib.docs.richdocument.TableQuery.format_for_llm()
class mellea.stdlib.docs.richdocument.TableTransform(obj: Table, transformation: str)
TableTransform
class.
obj
: The table object to which the transform applies.transformation
: The transformation description string.mellea.stdlib.docs.richdocument.TableTransform.format_for_llm()
class mellea.stdlib.docs.richdocument.Table(ti: TableItem, doc: DoclingDocument)
Table
represents a single table within a larger Docling Document.
mellea.stdlib.docs.richdocument.Table.from_markdown(md: str)
mellea.stdlib.docs.richdocument.Table.to_markdown()
Table
as markdown.
mellea.stdlib.docs.richdocument.Table.transpose()
Table
if successful.
mellea.stdlib.docs.richdocument.Table.format_for_llm()