- Sync
- Async
Parameters
document_id(str): ID of the document
Returns
Summary: Stored summary payload for the document
Examples
- Sync
- Async
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Fetch the stored summary for a document
def get_document_summary(
document_id: str,
) -> Summary
async def get_document_summary(
document_id: str,
) -> Summary
document_id (str): ID of the documentSummary: Stored summary payload for the documentfrom morphik import Morphik
db = Morphik()
summary = db.get_document_summary("doc_123")
print(summary.content)
from morphik import AsyncMorphik
async with AsyncMorphik() as db:
summary = await db.get_document_summary("doc_123")
print(summary.content)
Was this page helpful?
