Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix: correct docs-to-code mismatches in modules.md, context.md, and split.md

KaifAhmad16bf81bb5bc9a
diff --git a/docs/modules.md b/docs/modules.md
index 1f6aa0c3..8b30c065 100644
--- a/docs/modules.md
+++ b/docs/modules.md
@@ -59,7 +59,7 @@ xml = XMLIngestor(validate_xsd="schema.xsd")
sources = xml.ingest("data/records/")
```
-**Available ingestors:** `FileIngestor`, `WebIngestor`, `ParquetIngestor`, `XMLIngestor`, `APIIngestor`, `DBIngestor`, `DuckDBIngestor`, `ElasticIngestor`, `EmailIngestor`, `FeedIngestor`, `GDriveIngestor`, `HuggingFaceIngestor`, `MCPIngestor`, `MongoIngestor`, `OntologyIngestor`, `PandasIngestor`, `RepoIngestor`, `SnowflakeIngestor`, `StreamIngestor`
+**Available ingestors:** `FileIngestor`, `WebIngestor`, `ParquetIngestor`, `XMLIngestor`, `RESTIngestor`, `DBIngestor`, `DuckDBIngestor`, `ElasticIngestor`, `EmailIngestor`, `FeedIngestor`, `GDriveIngestor`, `HuggingFaceIngestor`, `MCPIngestor`, `MongoIngestor`, `OntologyIngestor`, `PandasIngestor`, `RepoIngestor`, `SnowflakeIngestor`, `StreamIngestor`
### Parse
@@ -86,22 +86,22 @@ Chunks text for embedding and RAG pipelines with awareness of semantic boundarie
```python
from semantica.split import TextSplitter
-splitter = TextSplitter(method="semantic")
-chunks = splitter.split(text, chunk_size=1000, overlap=200)
+splitter = TextSplitter(method="semantic_transformer")
+chunks = splitter.split(text, chunk_size=1000, chunk_overlap=200)
```
-**Chunking strategies:** `recursive`, `semantic`, `entity-aware`, `relation-aware`, `sliding_window`, `structural`, `table`
+**Chunking strategies:** `recursive`, `semantic_transformer`, `entity_aware`, `relation_aware`, `sliding_window`, `structural`
### Normalize
Cleans and standardizes text before semantic processing.
```python
-from semantica.normalize import DataNormalizer
+from semantica.normalize import TextNormalizer, normalize_text, normalize_date
-normalizer = DataNormalizer()
-clean_text = normalizer.normalize_text(text)
-standardized_date = normalizer.normalize_date("Jan 1st, 2020")
+normalizer = TextNormalizer()
+clean_text = normalizer.normalize_text(text)
+standardized_date = normalize_date("Jan 1st, 2020")
```
**Normalizers available:** text cleaning, entity canonicalization, date normalization, number normalization, encoding handling, language detection
diff --git a/docs/reference/context.md b/docs/reference/context.md
index 1d3c4aea..02b7d411 100644
--- a/docs/reference/context.md
+++ b/docs/reference/context.md
@@ -88,9 +88,9 @@ for step in result["reasoning_path"]:
| `vector_store` | `VectorStore` | required | Backend for embedding-based memory retrieval |
| `knowledge_graph` | `ContextGraph` | `None` | Enables graph-backed relationships and analytics |
| `decision_tracking` | `bool` | `False` | Activates `DecisionRecorder` for every decision |
-| `graph_expansion` | `bool` | `False` | Auto-expands graph from stored memories |
-| `advanced_analytics` | `bool` | `False` | Enables centrality and community analysis |
-| `kg_algorithms` | `bool` | `False` | Adds path-finding and link prediction |
+| `graph_expansion` | `bool` | `True` | Auto-expands graph from stored memories |
+| `advanced_analytics` | `bool` | `True` | Enables centrality and community analysis |
+| `kg_algorithms` | `bool` | `True` | Adds path-finding and link prediction |
### Core Methods
diff --git a/docs/reference/split.md b/docs/reference/split.md
index f156f7aa..0bffe58d 100644
--- a/docs/reference/split.md
+++ b/docs/reference/split.md
@@ -20,9 +20,9 @@ icon: "scissors"
from semantica.split import TextSplitter
splitter = TextSplitter(
- method="semantic", # see methods table below
- chunk_size=1000, # target tokens per chunk
- overlap=200 # token overlap between adjacent chunks
+ method="semantic_transformer", # see methods table below
+ chunk_size=1000, # target tokens per chunk
+ chunk_overlap=200 # token overlap between adjacent chunks
)
chunks = splitter.split(text)
@@ -36,9 +36,9 @@ for chunk in chunks:
| Method | Description | Best For |
| ------ | ----------- | -------- |
| `recursive` | Split by paragraph → sentence → word (cascading) | General purpose |
-| `semantic` | Split at semantic topic boundaries | RAG retrieval |
-| `entity-aware` | Keep entity mentions intact across boundaries | NER pipelines |
-| `relation-aware` | Keep relation triplets intact | KG construction |
+| `semantic_transformer` | Split at semantic topic boundaries via sentence transformer | RAG retrieval |
+| `entity_aware` | Keep entity mentions intact across boundaries | NER pipelines |
+| `relation_aware` | Keep relation triplets intact | KG construction |
| `sentence` | Split by sentence boundary | Short content |
| `token` | Split by token count (tiktoken) | LLM context windows |
| `fixed` | Fixed character count with overlap | Batch processing |
@@ -56,7 +56,7 @@ from semantica.semantic_extract import NERExtractor
ner = NERExtractor()
entities = ner.extract(text)
-splitter = TextSplitter(method="entity-aware")
+splitter = TextSplitter(method="entity_aware")
chunks = splitter.split(text, entities=entities)
# → Each chunk contains only complete entity mentions
```
@@ -68,7 +68,7 @@ Subject–predicate–object triplets are kept within the same chunk:
```python
from semantica.split import TextSplitter
-splitter = TextSplitter(method="relation-aware")
+splitter = TextSplitter(method="relation_aware")
chunks = splitter.split(text, relationships=relationships)
# → Triplets are never split across chunk boundaries
```
@@ -83,7 +83,7 @@ from semantica.embeddings import EmbeddingGenerator
embedder = EmbeddingGenerator(model="sentence-transformers")
splitter = TextSplitter(
- method="semantic",
+ method="semantic_transformer",
embedder=embedder,
similarity_threshold=0.7 # split when consecutive sentence similarity drops below this
)
@@ -98,9 +98,9 @@ Use tiktoken for precise token-count control when preparing LLM context windows:
```python
splitter = TextSplitter(
method="token",
- chunk_size=512, # max tokens per chunk
- overlap=50, # overlap in tokens
- tokenizer="cl100k_base" # OpenAI tokenizer
+ chunk_size=512, # max tokens per chunk
+ chunk_overlap=50, # overlap in tokens
+ tokenizer="cl100k_base" # OpenAI tokenizer
)
chunks = splitter.split(text)
```
@@ -115,7 +115,7 @@ class Chunk:
end_char: int # character offset in source document
token_count: int # number of tokens
metadata: Dict # source_id, chunk_index, section_title, page_number, etc.
- entities: List[Dict] # entities in chunk (entity-aware splitting only)
+ entities: List[Dict] # entities in chunk (entity_aware splitting only)
```
## Pipeline Integration
@@ -125,7 +125,7 @@ from semantica.pipeline import Pipeline
from semantica.split import TextSplitter
pipeline = Pipeline()
-pipeline.add_step("split", TextSplitter(method="semantic", chunk_size=512))
+pipeline.add_step("split", TextSplitter(method="semantic_transformer", chunk_size=512))
result = pipeline.run(documents)
```