Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
docs(modules): tighten prose, remove chained colons, and use developer-first guidance
AutoHarness Bot3e942cbea053
diff --git a/docs/choose-your-module.md b/docs/choose-your-module.mdindex 7af66e35..99c1e42f 100644--- a/docs/choose-your-module.md+++ b/docs/choose-your-module.md@@ -5,7 +5,7 @@ icon: "compass"---<Info>- Every module works independently — import only what you need. This page maps developer goals to starting points. The [Module Reference](/modules) covers every module in depth.+ Every module works independently: import only what you need. This page maps developer goals to starting points. The [Module Reference](/modules) covers every module in depth.</Info>## Quick Reference@@ -75,7 +75,7 @@ Pick your goal to see the minimum imports and a working skeleton.sources = FileIngestor().ingest("report.pdf")parsed = DocumentParser().parse_document("report.pdf")- # No API key required — pattern-based extraction+ # No API key required: pattern-based extractionentities = NERExtractor(method="pattern").extract(parsed)relationships = RelationExtractor(method="rule").extract(parsed, entities=entities)@@ -89,7 +89,7 @@ Pick your goal to see the minimum imports and a working skeleton.Pass `method="pattern"` to `NERExtractor` for zero-cost, zero-API-key extraction. Switch to `method="llm"` with any of the supported providers for higher recall.</Tip>- **Next:** [Quickstart →](/quickstart) — full pipeline with visualization and export.+ **Next:** [Quickstart →](/quickstart): full pipeline with visualization and export.</Tab><Tab title="Build GraphRAG">@@ -109,7 +109,7 @@ Pick your goal to see the minimum imports and a working skeleton.knowledge_graph=ContextGraph(advanced_analytics=True),)- # Store facts — retrieval uses both vectors and graph structure+ # Store facts: retrieval uses both vectors and graph structurecontext.store("Apple Inc. was co-founded by Steve Jobs in 1976 in Cupertino.")# GraphRAG query with multi-hop reasoning trace@@ -206,11 +206,11 @@ Pick your goal to see the minimum imports and a working skeleton.```pythonfrom semantica.export import RDFExporter, ParquetExporter, LPGExporter, ArangoAQLExporter- # RDF — multiple serialization formats+ # RDF: multiple serialization formatsRDFExporter().export(graph, "graph.ttl", format="turtle")RDFExporter().export(graph, "graph.jsonld", format="jsonld")- # Parquet — for Spark, BigQuery, Databricks, Snowflake+ # Parquet: for Spark, BigQuery, Databricks, SnowflakeParquetExporter().export(graph, "output/graph.parquet")# Neo4j / Memgraph via Cypher@@ -225,15 +225,15 @@ Pick your goal to see the minimum imports and a working skeleton.**Next:** [Export module reference →](/reference/export)</Tab>- <Tab title="MCP — Claude / Cursor">- Use Semantica from Claude Desktop, Cursor, VS Code, or any MCP-aware tool — no Python code required after setup. 15 tools available instantly.+ <Tab title="MCP: Claude / Cursor">+ Use Semantica from Claude Desktop, Cursor, VS Code, or any MCP-aware tool; no Python code required after setup. 15 tools available instantly.- **Step 1 — Install:**+ **Step 1: Install**```bashpip install semantica```- **Step 2 — Add to your MCP client config:**+ **Step 2: Add to your MCP client config**<CodeGroup>@@ -273,10 +273,10 @@ Pick your goal to see the minimum imports and a working skeleton.</Tabs>-## Still Unsure?+## Architecture Selection Guidance<AccordionGroup>- <Accordion title="Knowledge graph vs. vector store — which do I need?" icon="scale-balanced">+ <Accordion title="Knowledge graph vs. vector store selection" icon="scale-balanced">Use a **knowledge graph** (`kg`) when you need structured reasoning, multi-hop traversal, provenance, or compliance audit trails.Use a **vector store** (`vector_store`) when you need fast fuzzy similarity search over large text corpora and relationships between items don't matter.@@ -286,12 +286,12 @@ Pick your goal to see the minimum imports and a working skeleton.See also: [Core Concepts](/concepts)</Accordion>- <Accordion title="I just want to run something quickly." icon="rocket">+ <Accordion title="Fast local pipeline setup" icon="rocket">Start with the [Quickstart](/quickstart). It builds a complete pipeline (ingest → parse → extract → graph → visualize → export) with no API key required.</Accordion>- <Accordion title="I'm adding Semantica to an existing agent — what's the minimum?" icon="plug">- Add `AgentContext`. It wraps your existing agent with memory, decision tracking, and precedent search — no changes to your LLM provider or agent framework needed.+ <Accordion title="Minimum configuration for existing agents" icon="plug">+ Add `AgentContext` to equip an existing agent with memory, decision tracking, and precedent search, with no changes to your LLM provider or agent framework required.```pythonfrom semantica.context import AgentContext, ContextGraph@@ -307,7 +307,7 @@ Pick your goal to see the minimum imports and a working skeleton.[Context module reference →](/reference/context)</Accordion>- <Accordion title="I need a compliance-ready pipeline — what's the minimum stack?" icon="shield-check">+ <Accordion title="Minimum stack for compliance-ready pipelines" icon="shield-check">| Layer | Module | Key class || :---- | :------ | :--------- || Ingestion | `ingest` | `FileIngestor` |@@ -322,6 +322,6 @@ Pick your goal to see the minimum imports and a working skeleton.----- [Quickstart](/quickstart) — Full pipeline in 5 minutes.-- [Module Reference](/modules) — Every module with examples and common chains.-- [API Reference](/reference/context) — Complete class and method documentation.+- [Quickstart](/quickstart): full pipeline in 5 minutes.+- [Module Reference](/modules): every module with examples and common chains.+- [API Reference](/reference/context): complete class and method documentation.diff --git a/docs/modules.md b/docs/modules.mdindex 4a41086a..41cd682c 100644--- a/docs/modules.md+++ b/docs/modules.md@@ -5,23 +5,23 @@ icon: "puzzle-piece"---<Info>- Looking for a quick reference? Jump to the [Module Index](#module-index) at the bottom.+ Jump to the [Module Index](#module-index) for a quick reference.</Info><Tip>- Not sure which module to use? The [Choose the Right Module](/choose-your-module) guide maps 35+ developer goals to modules with code examples — start there if you're orienting for the first time.+ The [Choose the Right Module](/choose-your-module) guide maps 35+ developer goals to modules with code examples; start there if you're orienting for the first time.</Tip>Semantica is organized into **27 modules** across six logical layers. Each module is independently importable: you never pay for what you don't use.## Architecture Overview-- **Input Layer** — Data ingestion and preparation. Modules: `ingest`, `parse`, `split`, `normalize`-- **Core Processing** — Intelligence and understanding. Modules: `semantic_extract`, `kg`, `ontology`, `reasoning`-- **Storage** — Persistent data storage. Modules: `embeddings`, `vector_store`, `graph_store`, `triplet_store`-- **Quality Assurance** — Data quality and consistency. Modules: `deduplication`, `conflicts`-- **Context & Memory** — Agent memory and decision tracking. Modules: `context`, `provenance`, `change_management`-- **Output & Orchestration** — Export, visualization, and workflows. Modules: `export`, `visualization`, `pipeline`, `explorer`+- **Input Layer**: data ingestion and preparation. Modules: `ingest`, `parse`, `split`, `normalize`+- **Core Processing**: intelligence and understanding. Modules: `semantic_extract`, `kg`, `ontology`, `reasoning`+- **Storage**: persistent data storage. Modules: `embeddings`, `vector_store`, `graph_store`, `triplet_store`+- **Quality Assurance**: data quality and consistency. Modules: `deduplication`, `conflicts`+- **Context & Memory**: agent memory and decision tracking. Modules: `context`, `provenance`, `change_management`+- **Output & Orchestration**: export, visualization, and workflows. Modules: `export`, `visualization`, `pipeline`, `explorer`## Input Layer@@ -51,7 +51,7 @@ sources = parquet.ingest("data/events.parquet")xml = XMLIngestor()sources = xml.ingest("data/records/", schema_path="schema.xsd")-# Enterprise lakehouse/warehouse — Unity Catalog + Delta Lake, or a Snowflake warehouse+# Enterprise lakehouse/warehouse: Unity Catalog + Delta Lake, or a Snowflake warehousedatabricks = DatabricksIngestor(host="...", token="...", http_path="...")customers = databricks.ingest_table("customers")```@@ -59,7 +59,7 @@ customers = databricks.ingest_table("customers")**Available ingestors:** `FileIngestor`, `WebIngestor`, `ParquetIngestor`, `XMLIngestor`, `RESTIngestor`, `PublicAPIIngestor`, `DBIngestor`, `DatabricksIngestor`, `SnowflakeIngestor`, `EmailIngestor`, `FeedIngestor`, `MCPIngestor`, `OntologyIngestor`, `RepoIngestor`, `StreamIngestor`, `ArrowIngestor`, `CloudStorageIngestor`<Note>- `DuckDBIngestor`, `ElasticIngestor`, `GDriveIngestor`, `HuggingFaceIngestor`, `MongoIngestor`, and `PandasIngestor` also ship but aren't re-exported from the top-level `semantica.ingest` namespace yet — import them directly, e.g. `from semantica.ingest.duckdb_ingestor import DuckDBIngestor`.+ `DuckDBIngestor`, `ElasticIngestor`, `GDriveIngestor`, `HuggingFaceIngestor`, `MongoIngestor`, and `PandasIngestor` also ship but aren't re-exported from the top-level `semantica.ingest` namespace yet; import them directly, e.g. `from semantica.ingest.duckdb_ingestor import DuckDBIngestor`.</Note>### Parse@@ -749,6 +749,6 @@ versioner.create_snapshot(kg, "2024-Q1", author="[email protected]", description=| [core](/reference/core) | Base classes & registry | `Semantica`, `ConfigManager`, `PluginRegistry`, `LifecycleManager` || [utils](/reference/utils) | Shared utilities | `helpers`, `validators` |-- [Getting Started](/getting-started) — Your first knowledge graph in 5 minutes.-- [Cookbook](/cookbook) — 40+ domain notebooks with real-world examples.-- [API Reference](/reference/context) — Full technical documentation.+- [Getting Started](/getting-started): your first knowledge graph in 5 minutes.+- [Cookbook](/cookbook): 40+ domain notebooks with real-world examples.+- [API Reference](/reference/context): full technical documentation.