Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Release v0.1.1: Docling support, version bump, and documentation updates

KaifAhmad1d7b686f32a2c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4d5a0a2a..df02ef51 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [0.1.1] - 2026-01-05
+
+### Added
+- Exported `DoclingParser` and `DoclingMetadata` from `semantica.parse` for easier access.
+- Added comprehensive `DoclingParser` usage examples to README and documentation.
+- Added Windows-specific troubleshooting note for PyTorch DLL issues.
+
+### Fixed
+- Fixed `DoclingParser` import/export issues across platforms (Windows, Linux, Google Colab).
+- Improved error messaging when optional `docling` dependency is missing.
+- Fixed versioning inconsistencies across the framework.
+
## [0.1.0] - 2025-12-31
### Added
diff --git a/LICENSE b/LICENSE
index ea4e22db..d0dbcb9a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2025 Hawksight AI
+Copyright (c) 2026 Hawksight AI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index a30871ec..1f3bfdd6 100644
--- a/README.md
+++ b/README.md
@@ -184,12 +184,18 @@ pip install semantica
# Or install with optional dependencies
pip install semantica[all]
+# GitHub Workaround (if PyPI version has issues)
+pip install git+https://github.com/Hawksight-AI/semantica.git@main
+
# Verify installation
-python -c "import semantica; print(semantica.__version__)"
+python -c "from semantica.parse import DoclingParser; DoclingParser(); print('✓ Semantica ready')"
```
**Current Version:** [![PyPI version](https://badge.fury.io/py/semantica.svg)](https://pypi.org/project/semantica/) • [View on PyPI](https://pypi.org/project/semantica/)
+!!! info "Windows PyTorch Note"
+ If you encounter PyTorch DLL errors on Windows, ensure you have the [Microsoft Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe) installed. This is a common environment-specific issue with PyTorch on Windows and not a bug in Semantica.
+
### Install from Source (Development)
@@ -254,14 +260,20 @@ print(f" Ingested {len(sources)} sources")
> **Multi-format parsing** • **Text normalization** • **Intelligent chunking**
```python
-from semantica.parse import DocumentParser
+from semantica.parse import DocumentParser, DoclingParser
from semantica.normalize import TextNormalizer
from semantica.split import TextSplitter
-# Parse documents
+# Standard parsing
parser = DocumentParser()
parsed = parser.parse("document.pdf", format="auto")
+# Enhanced parsing with Docling (recommended for complex layouts/tables)
+# Requires: pip install docling
+docling_parser = DoclingParser()
+docling_result = docling_parser.parse("complex_table.pdf")
+print(f"Extracted {len(docling_result.tables)} tables")
+
# Normalize text
normalizer = TextNormalizer()
normalized = normalizer.normalize(parsed, clean_html=True, normalize_entities=True)
diff --git a/RELEASE.md b/RELEASE.md
index 5036c64b..5fefedea 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -26,10 +26,10 @@ Before releasing, ensure:
The project uses GitHub Actions for automated releases to PyPI.
-1. **Tag the commit**: Create a new git tag for the version (e.g., `v0.1.0`).
+1. **Tag the commit**: Create a new git tag for the version (e.g., `v0.1.1`).
```bash
- git tag -a v0.1.0 -m "Release v0.1.0"
- git push origin v0.1.0
+ git tag -a v0.1.1 -m "Release v0.1.1"
+ git push origin v0.1.1
```
2. **GitHub Action**: The `Release` workflow will automatically trigger, build the package, create a GitHub Release, and publish to PyPI using Trusted Publishing.
diff --git a/SECURITY.md b/SECURITY.md
index 23c94219..e253e4de 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -6,6 +6,7 @@ We actively support the following versions of Semantica with security updates:
| Version | Supported |
| ------- | ------------------ |
+| 0.1.1 | :white_check_mark: |
| 0.1.0 | :white_check_mark: |
| < 0.1.0 | :x: |
diff --git a/docs/citation.md b/docs/citation.md
index 3f040a45..4a7485ee 100644
--- a/docs/citation.md
+++ b/docs/citation.md
@@ -7,29 +7,27 @@ How to cite Semantica in academic papers and research.
## BibTeX
```bibtex
-@software{semantica2025,
+@software{semantica2026,
title = {Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering},
author = {Hawksight AI},
- year = {2025},
- url = {https://github.com/Hawksight-AI/semantica},
- version = {0.1.0},
- year = {2025},
+ year = {2026},
url = {https://github.com/Hawksight-AI/semantica},
+ version = {0.1.1},
doi = {10.5281/zenodo.XXXXXXX}
}
```
### APA
-Hawksight AI. (2025). *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering* (Version 0.1.0) [Computer software]. https://github.com/Hawksight-AI/semantica
+Hawksight AI. (2026). *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering* (Version 0.1.1) [Computer software]. https://github.com/Hawksight-AI/semantica
### MLA
-Hawksight AI. *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering*. Version 0.1.0, GitHub, 2025, https://github.com/Hawksight-AI/semantica.
+Hawksight AI. *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering*. Version 0.1.1, GitHub, 2026, https://github.com/Hawksight-AI/semantica.
### Chicago
-Hawksight AI. *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering*. Version 0.1.0. GitHub, 2025. https://github.com/Hawksight-AI/semantica.
+Hawksight AI. *Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering*. Version 0.1.1. GitHub, 2026. https://github.com/Hawksight-AI/semantica.
### IEEE
-Hawksight AI, "Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering," Version 0.1.0, GitHub, 2025. [Online]. Available: https://github.com/Hawksight-AI/semantica
+Hawksight AI, "Semantica: An Open Source Framework for Semantic Layers and Knowledge Engineering," Version 0.1.1, GitHub, 2026. [Online]. Available: https://github.com/Hawksight-AI/semantica
---
@@ -37,7 +35,7 @@ Hawksight AI, "Semantica: An Open Source Framework for Semantic Layers and Knowl
If you use Semantica in your work:
-> "This work uses Semantica (Hawksight AI, 2025), an open-source framework for semantic layer construction and knowledge engineering."
+> "This work uses Semantica (Hawksight AI, 2026), an open-source framework for semantic layer construction and knowledge engineering."
---
diff --git a/docs/installation.md b/docs/installation.md
index f5ef45d2..d786c39a 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -28,6 +28,14 @@ pip install semantica
This installs Semantica with all core dependencies.
+### GitHub Workaround
+
+If you encounter issues with the PyPI version, you can install directly from the main branch:
+
+```bash
+pip install git+https://github.com/Hawksight-AI/semantica.git@main
+```
+
!!! tip "Virtual Environment"
We recommend installing Semantica in a virtual environment to avoid dependency conflicts. Use `python -m venv venv` to create one, then activate it before installing.
@@ -36,12 +44,15 @@ This installs Semantica with all core dependencies.
Verify that Semantica is installed correctly:
```bash
-python -c "import semantica; print(semantica.__version__)"
+python -c "from semantica.parse import DoclingParser; DoclingParser(); print('✓ Semantica ready')"
```
+!!! info "Windows PyTorch Note"
+ If you encounter PyTorch DLL errors on Windows, ensure you have the [Microsoft Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe) installed. This is a common environment-specific issue with PyTorch on Windows and not a bug in Semantica.
+
Expected output:
```
-0.1.0
+✓ Semantica ready
```
You can also check the installation:
diff --git a/docs/js/version-selector.js b/docs/js/version-selector.js
index f08dbdeb..03a433c7 100644
--- a/docs/js/version-selector.js
+++ b/docs/js/version-selector.js
@@ -9,7 +9,8 @@ document.addEventListener("DOMContentLoaded", function () {
// Define versions
var versions = [
- { name: "0.1.0", url: "#", current: true }
+ { name: "0.1.1", url: "#", current: true },
+ { name: "0.1.0", url: "#", current: false }
];
// Create the scrollable list
diff --git a/docs/license.md b/docs/license.md
index aeb4b822..f6abe1e1 100644
--- a/docs/license.md
+++ b/docs/license.md
@@ -9,7 +9,7 @@ Semantica is released under the MIT License.
```
MIT License
-Copyright (c) 2025 Hawksight AI
+Copyright (c) 2026 Hawksight AI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/docs/quickstart.md b/docs/quickstart.md
index 723f76b8..f3d9b00e 100644
--- a/docs/quickstart.md
+++ b/docs/quickstart.md
@@ -36,32 +36,44 @@ See the [Installation Guide](installation.md) for detailed instructions.
Building a knowledge graph involves these key steps:
-1. **Ingest** your documents using `` `FileIngestor` ``
-2. **Parse** documents to extract text using `` `DocumentParser` ``
-3. **Extract** entities and relationships using `` `NERExtractor` `` and `` `RelationExtractor` ``
-4. **Build** the graph using `` `GraphBuilder` ``
-5. **Generate** embeddings (optional) using `` `TextEmbedder` ``
+1. **Ingest** your documents using `FileIngestor`
+2. **Parse** documents to extract text using `DocumentParser` or `DoclingParser` (for enhanced layout support)
+3. **Extract** entities and relationships using `NERExtractor` and `RelationExtractor`
+4. **Build** the graph using `GraphBuilder`
+5. **Generate** embeddings (optional) using `TextEmbedder`
**Quick Example:**
```python
from semantica.ingest import FileIngestor
-from semantica.parse import DocumentParser
+from semantica.parse import DocumentParser, DoclingParser
from semantica.semantic_extract import NERExtractor, RelationExtractor
from semantica.kg import GraphBuilder
-# Build your first knowledge graph
+# 1. Ingest document
ingestor = FileIngestor()
+sources = ingestor.ingest("data/sample.pdf")
+
+# 2. Parse (choose your parser)
+# Option A: Standard parser
parser = DocumentParser()
+parsed_content = parser.parse(sources[0])
+
+# Option B: Enhanced Docling parser (recommended for complex tables)
+# docling_parser = DoclingParser()
+# parsed_content = docling_parser.parse(sources[0])
+
+# 3. Extract entities and relations
ner = NERExtractor()
-rel_extractor = RelationExtractor()
+entities = ner.extract(parsed_content)
+
+relations = RelationExtractor()
+relationships = relations.extract(parsed_content, entities=entities)
+
+# 4. Build graph
builder = GraphBuilder()
+graph = builder.build(entities=entities, relationships=relationships)
-# Process document and build graph
-doc = ingestor.ingest_file("document.pdf")
-parsed = parser.parse_document("document.pdf")
-entities = ner.extract_entities(parsed.get("full_text", ""))
-relationships = rel_extractor.extract_relations(parsed.get("full_text", ""), entities=entities)
-kg = builder.build_graph(entities=entities, relationships=relationships)
+print(f"Built knowledge graph with {len(graph.nodes)} nodes and {len(graph.edges)} edges")
```
**For complete step-by-step examples with detailed explanations, see:**
diff --git a/docs/reference/parse.md b/docs/reference/parse.md
index 25812d58..42f31a81 100644
--- a/docs/reference/parse.md
+++ b/docs/reference/parse.md
@@ -87,6 +87,7 @@ The **Parse Module** extracts structured content from raw files and data sources
### Document Parsing
- **PDF**: `pdfplumber` for precise layout preservation, table extraction, and image handling. Fallback to `PyPDF2`.
+- **Docling**: `docling` integration for advanced document structure understanding and high-accuracy table extraction across PDF, DOCX, PPTX, XLSX, and HTML.
- **Office (DOCX/PPTX/XLSX)**: XML-based parsing of OpenXML formats to extract text, styles, and properties.
- **OCR**: Tesseract-based optical character recognition for image-based PDFs and image files.
@@ -128,6 +129,43 @@ print(doc.get("metadata", {}).get("title"))
print(doc.get("full_text", "")[:100])
```
+### DoclingParser
+
+Specialized parser using Docling for enhanced layout understanding and table extraction. It is independent of `DocumentParser` and optimized for complex document structures.
+
+**Methods:**
+
+| Method | Description |
+|--------|-------------|
+| `` `parse(path)` `` | Full parse including text, tables, and metadata |
+| `` `parse_batch(paths)` `` | Parse multiple documents in parallel |
+| `` `extract_text(path)` `` | Extract clean text in Markdown/HTML/JSON format |
+| `` `extract_tables(path)` `` | High-accuracy table extraction |
+| `` `extract_metadata(path)` `` | Extract document properties |
+
+**Configuration:**
+
+| Option | Type | Default | Description |
+|--------|------|---------|-------------|
+| `export_format` | `str` | `"markdown"` | Output format: `"markdown"`, `"html"`, `"json"` |
+| `enable_ocr` | `bool` | `False` | Enable OCR for scanned documents |
+
+**Example:**
+
+```python
+from semantica.parse import DoclingParser
+
+parser = DoclingParser()
+result = parser.parse("complex_table.pdf")
+
+# Access high-accuracy tables
+for table in result.tables:
+ print(table.headers)
+
+# Get markdown representation
+print(result.markdown)
+```
+
### WebParser
Parses web content.
diff --git a/mkdocs.yml b/mkdocs.yml
index 90718f95..6c8dfd87 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -7,7 +7,7 @@ repo_name: Hawksight-AI/semantica
edit_uri: edit/main/docs/
# Copyright
-copyright: Copyright &copy; 2025 Hawksight AI
+copyright: Copyright &copy; 2026 Hawksight AI
# Theme Configuration
theme:
diff --git a/pyproject.toml b/pyproject.toml
index 38ea6380..1b84770a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "semantica"
-version = "0.1.0"
+version = "0.1.1"
description = "🧠 Semantica - An Open Source Framework for building Semantic Layers and Knowledge Engineering "
readme = "README.md"
license = {text = "MIT"}
diff --git a/semantica/__init__.py b/semantica/__init__.py
index 319a9e3f..7edb0b7b 100644
--- a/semantica/__init__.py
+++ b/semantica/__init__.py
@@ -10,7 +10,7 @@ Main exports:
- Config: Configuration management
"""
-__version__ = "0.1.0"
+__version__ = "0.1.1"
__author__ = "Semantica Contributors"
__license__ = "MIT"
diff --git a/semantica/evals/__init__.py b/semantica/evals/__init__.py
index b6fd4da0..8cc78b97 100644
--- a/semantica/evals/__init__.py
+++ b/semantica/evals/__init__.py
@@ -4,7 +4,7 @@ Semantica Evals Module
Coming Soon
"""
-__version__ = "0.1.0"
+__version__ = "0.1.1"
__status__ = "coming_soon"
__all__ = []
diff --git a/semantica/parse/parse_usage.md b/semantica/parse/parse_usage.md
index 54f81565..67074575 100644
--- a/semantica/parse/parse_usage.md
+++ b/semantica/parse/parse_usage.md
@@ -146,6 +146,83 @@ text_doc = doc_parser.parse_document("document.txt")
print(f"Text: {text_doc.get('text', '')}")
```
+### Docling Parsing (Enhanced Layout & Tables)
+
+`DoclingParser` is a specialized parser that provides superior extraction for complex documents with nested tables, multi-column layouts, and varied structures. It is recommended for production-grade document processing.
+
+#### Features
+- **Multi-format Support**: PDF, DOCX, PPTX, XLSX, HTML, and images.
+- **Superior Table Extraction**: Advanced layout analysis for nested and complex tables.
+- **OCR Support**: Built-in support for scanned documents and images.
+- **Multiple Export Formats**: Export to Markdown, HTML, or JSON.
+
+#### Basic Usage
+
+```python
+from semantica.parse import DoclingParser
+
+# Initialize DoclingParser
+# Requires 'docling' package: pip install docling
+parser = DoclingParser()
+
+# 1. Parse document
+result = parser.parse("complex_invoice.pdf")
+
+# 2. Extract structured content
+# result contains the full Docling document object if available
+print(f"Extracted Text (Markdown): {result.markdown}")
+
+# 3. Access extracted tables with high accuracy
+for i, table in enumerate(result.tables):
+ print(f"Table {i+1} headers: {table.headers}")
+ print(f"Table {i+1} row count: {len(table.rows)}")
+
+# 4. Extract metadata
+metadata = result.metadata
+print(f"Title: {metadata.title}")
+print(f"Page Count: {metadata.page_count}")
+```
+
+#### Advanced Configuration
+
+You can customize the parser with various options:
+
+```python
+from semantica.parse import DoclingParser
+
+# Initialize with custom export format and OCR enabled
+parser = DoclingParser(
+ export_format="html", # Options: "markdown", "html", "json"
+ enable_ocr=True # Enable OCR for scanned documents
+)
+
+# Parse with specific export format
+result = parser.parse("scanned_document.pdf")
+print(f"HTML Content: {result.html}")
+
+# Batch processing
+results = parser.parse_batch(["doc1.pdf", "doc2.docx"])
+```
+
+#### Direct Extraction Methods
+
+For simple use cases, use direct extraction methods:
+
+```python
+from semantica.parse import DoclingParser
+
+parser = DoclingParser()
+
+# Extract only text (as markdown)
+markdown_text = parser.extract_text("report.pdf")
+
+# Extract only tables
+tables = parser.extract_tables("data_sheet.pdf")
+
+# Extract metadata
+metadata = parser.extract_metadata("document.pdf")
+```
+
## Web Content Parsing
### HTML Content Parsing