⚠️ Login required to run notebook and create podsLogin
← All Sample Datasets/Freight Shipments
🚛
Logistics

Freight Shipments

[1] Setup
import mantr

# Create memory pod for freight shipments
pod = mantr.create_pod("freight-shipments")
print(f"Created pod: {pod.id}")
[2] Ingest & Parse
# Sample 1: Ingest document with Karak extraction
result = pod.ingest("""
Container MAEU-123456 departed from Shanghai port to Los Angeles on March 5th.
""")

print(f"Extracted {len(result.memories)} Karak roles")
[3] Retrieve Context
# Retrieve context using Karak-based query
context = mantr.walk(
    query="Container MAEU-123456",
    pod="freight-shipments",
    seek_karak="kartā"  # Find the agent/subject
)

print(context)

Karak Roles Reference

kartā
Agent/Subject
WHO
karma
Object
WHAT
karaṇa
Instrument
WITH WHAT
sampradāna
Recipient
TO WHOM
apādāna
Source
FROM WHERE
adhikaraṇa
Location/Time
WHERE/WHEN
sambandha
Relation
WHOSE
kriyā
Action
VERB