Examples
Data Ingestion
Fundamentals of loading data from files, URLs, and JSON into the system.
I/O Module
Modes of Ingestion
Getting data IN is the first step. The SDK supports structured (JSON) and unstructured (Text/PDF/URL) data.
Unstructured
Files, URLs, Raw Text. The system automatically chunks and extracts entities.
Structured
JSON data. Preserves the schema and relationships better.
Unified
ingest_unified auto-detects the best method.
Code Example
Key Takeaways
- Ingestion is asynchronous. These methods return a
job_id. - Everything ingested ends up in a Knowledge Graph (specified by
kg_name). - Use
ingest_jsonwhen you have structured data to avoid parsing errors.