Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Update README.md

Mohd Kaif35ce5c9b81bb
diff --git a/README.md b/README.md
index 251a8f0d..717da339 100644
--- a/README.md
+++ b/README.md
@@ -1,196 +1,149 @@
<div align="center">
-<img src="semantica_logo.png" alt="Semantica Logo" width="450" height="auto">
+<img src="semantica_logo.png" alt="Semantica Logo" width="450"/>
# 🧠 Semantica
-[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
+**Open-Source Semantic Layer & Knowledge Engineering Framework**
+
+[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
-[![PyPI version](https://img.shields.io/pypi/v/semantica.svg)](https://pypi.org/project/semantica/)
+[![PyPI](https://img.shields.io/pypi/v/semantica.svg)](https://pypi.org/project/semantica/)
[![Monthly Downloads](https://img.shields.io/pypi/dm/semantica)](https://pypi.org/project/semantica/)
[![Total Downloads](https://static.pepy.tech/badge/semantica)](https://pepy.tech/project/semantica)
-[![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289da?style=flat&logo=discord&logoColor=white)](https://discord.gg/pMHguUzG)
[![CI](https://github.com/Hawksight-AI/semantica/workflows/CI/badge.svg)](https://github.com/Hawksight-AI/semantica/actions)
+[![Discord](https://img.shields.io/badge/Discord-Join-7289da?logo=discord&logoColor=white)](https://discord.gg/pMHguUzG)
-<p align="center">
- <a href="https://github.com/Hawksight-AI/semantica/stargazers">
- <img src="https://img.shields.io/badge/Give%20a%20Star-%E2%AD%90-yellow?style=for-the-badge&labelColor=555555" alt="Give a Star">
- </a>
- &nbsp;&nbsp;
- <a href="https://github.com/Hawksight-AI/semantica/fork">
- <img src="https://img.shields.io/badge/Support%20Project-Fork%20Us-blue?style=for-the-badge&labelColor=555555" alt="Support Project">
- </a>
-</p>
-
-**Open Source Framework for Semantic Layer & Knowledge Engineering**
-
-> **Transform chaotic data into intelligent knowledge.**
-
-*The missing fabric between raw data and AI engineering. A comprehensive open-source framework for building semantic layers and knowledge engineering systems that transform unstructured data into AI-ready knowledge β€” powering Knowledge Graph-Powered RAG (GraphRAG), AI Agents, Multi-Agent Systems, and AI applications with structured semantic knowledge.*
-
-**100% Open Source** β€’ **MIT Licensed** β€’ **Latest Version: 0.2.4** β€’ **Production Ready** β€’ **Community Driven**
+⭐ **Star** β€’ 🍴 **Fork** β€’ πŸ’¬ **Join Discord**
-[**Discord**](https://discord.gg/pMHguUzG)
+> **Transform messy, unstructured data into AI-ready knowledge.**
</div>
-## What is Semantica?
-
-Semantica bridges the gap between raw data chaos and AI-ready knowledge. It's a **semantic intelligence platform** that transforms unstructured data into structured, queryable knowledge graphs powering GraphRAG, AI agents, and multi-agent systems.
-
-### What Makes Semantica Different?
-
-Unlike traditional approaches that process isolated documents and extract text into vectors, Semantica understands **semantic relationships across all content**, provides **automated ontology generation**, and builds a **unified semantic layer** with **production-grade QA**.
-
-| **Traditional Approaches** | **Semantica's Approach** |
-|:---------------------------|:-------------------------|
-| Process data as isolated documents | Understands semantic relationships across all content |
-| Extract text and store vectors | Builds knowledge graphs with meaningful connections |
-| Generic entity recognition | General-purpose ontology generation and validation |
-| Manual schema definition | Automatic semantic modeling from content patterns |
-| Disconnected data silos | Unified semantic layer across all data sources |
-| Basic quality checks | Production-grade QA with conflict detection & resolution |
-
---
-## 🎯 The Problem We Solve
-
-### The Semantic Gap
+## πŸš€ What is Semantica?
-Organizations today face a **fundamental mismatch** between how data exists and how AI systems need it.
+**Semantica** is the missing semantic fabric between raw data and intelligent AI systems.
+It converts PDFs, documents, APIs, databases, and streams into **validated knowledge graphs, ontologies, and GraphRAG-ready intelligence** powering **AI agents, multi-agent systems, and reasoning models**.
-#### The Semantic Gap: Problem vs. Solution
+**100% Open Source (MIT)** β€’ **Production Ready** β€’ **Latest: v0.2.4** β€’ **Community Driven**
-Organizations have **unstructured data** (PDFs, emails, logs), **messy data** (inconsistent formats, duplicates, conflicts), and **disconnected silos** (no shared context, missing relationships). AI systems need **clear rules** (formal ontologies), **structured entities** (validated, consistent), and **relationships** (semantic connections, context-aware reasoning).
-
-| **What Organizations Have** | **What AI Systems Require** |
-|:------------------------------|:------------------------------|
-| **Unstructured Data** | **Clear Rules** |
-| PDFs, emails, logs | Formal ontologies |
-| Mixed schemas | Graphs & Networks |
-| Conflicting facts | |
-| **Messy, Noisy Data** | **Structured Entities** |
-| Inconsistent formats | Validated entities |
-| Duplicate records | Domain Knowledge |
-| Missing relationships | |
-| **Disconnected, Siloed Data** | **Relationships** |
-| Data in separate systems | Semantic connections |
-| No shared context | Context-Aware Reasoning |
-| Isolated knowledge | |
+---
-### **SEMANTICA FRAMEWORK**
+## 🎯 Why Semantica?
-Semantica operates through three integrated layers that transform raw data into AI-ready knowledge:
+Traditional RAG systems treat data as isolated text chunks and vectors.
+**Semantica understands meaning and relationships.**
-**Input Layer** β€” Universal ingestion from multiple data formats (PDFs, DOCX, HTML, JSON, CSV, databases, live feeds, APIs, streams, archives, multi-modal content) into a unified pipeline.
+| Traditional RAG | Semantica |
+|-----------------|-----------|
+| Isolated documents | Unified semantic layer |
+| Vector-only search | Knowledge Graph + Vector (GraphRAG) |
+| Manual schemas | Automated ontology generation |
+| Hallucinations | Rule-based semantic validation |
+| Silent failures | Conflict detection & QA |
-**Semantic Layer** β€” Core intelligence engine performing entity extraction, relationship mapping, ontology generation, context engineering, and quality assurance. Includes **advanced entity deduplication** (Jaro-Winkler, disjoint property handling) to ensure a clean single source of truth.
+---
-**Output Layer** β€” Production-ready knowledge graphs, vector embeddings, and validated ontologies that power GraphRAG systems, AI agents, and multi-agent systems.
+## 🧠 The Problem: The Semantic Gap
-**Powers: GraphRAG, AI Agents, Multi-Agent Systems**
+Organizations have:
+- **Unstructured data** (PDFs, emails, logs)
+- **Messy data** (duplicates, conflicts, missing links)
+- **Siloed systems** (no shared context)
+AI systems require:
+- **Clear rules** (formal ontologies)
+- **Structured entities** (validated & consistent)
+- **Relationships** (context-aware reasoning)
+Without semantics:
+- ❌ Systems **break**
+- ❌ Models **hallucinate**
+- ❌ Errors **go undetected**
+**Data β‰  Knowledge. Semantics is the difference.**
+---
-### What Happens Without Semantics?
+## 🧩 Semantica Architecture (3 Layers)
-**They Break** β€” Systems crash due to inconsistent formats and missing structure.
+### 1️⃣ Input Layer
+Universal ingestion from:
+- PDFs, DOCX, HTML
+- JSON, CSV, databases
+- APIs, streams, archives
+- Multi-modal content
-**They Hallucinate** β€” AI models generate false information without semantic context to validate outputs.
+### 2️⃣ Semantic Layer (Core Engine)
+- Entity extraction & relationship mapping
+- Automated ontology generation
+- Context engineering & reasoning
+- **Entity deduplication (Jaro-Winkler)**
+- Conflict detection & provenance tracking
+- Production-grade QA
-**They Fail Silently** β€” Systems return wrong answers without warnings, leading to bad decisions.
+### 3️⃣ Output Layer
+- Validated **Knowledge Graphs**
+- **OWL Ontologies**
+- **Vector Embeddings**
-**Why?** Systems have data β€” not semantics. They can't connect concepts, understand relationships, validate against domain rules, or detect conflicts.
+**Powers GraphRAG, AI Agents & Multi-Agent Systems**
---
-## πŸ’‘ The Semantica Solution
-
-**Semantica** is an **open-source framework** that closes the semantic gap between real-world messy data and the structured semantic layers required by advanced AI systems β€” GraphRAG, agents, multi-agent systems, reasoning models, and more.
-
-### How Semantica Solves These Problems
+## πŸ’‘ Core Capabilities
-**Efficient Embeddings** β€” Uses **FastEmbed** by default for high-performance, lightweight local embedding generation (faster than sentence-transformers).
+- **GraphRAG Engine**
+ Hybrid vector + graph retrieval with **91% accuracy** (**+30% over vector-only**) and multi-hop reasoning
-**Universal Data Ingestion** β€” Handles multiple formats (PDF, DOCX, HTML, JSON, CSV, databases, APIs, streams) with unified pipeline, no custom parsers needed.
+- **Automated Ontology Generation**
+ 6-stage LLM pipeline with **HermiT / Pellet validation**
-**Automated Semantic Extraction** β€” NER, relationship extraction, and triplet generation with LLM enhancement. Includes **auto-chunking** for long documents and **robust error handling** with automatic retry logic.
+- **Knowledge Graphs**
+ Entity resolution, temporal support, graph analytics
-**Knowledge Graph Construction** β€” Production-ready graphs with entity resolution, temporal support, and graph analytics. Queryable knowledge ready for AI applications.
+- **Universal Ingestion**
+ Unified pipeline, no custom parsers required
-**GraphRAG Engine** β€” Hybrid vector + graph retrieval achieves 91% accuracy (30% improvement) via semantic search + graph traversal for multi-hop reasoning. Features LLM-generated responses grounded in knowledge graph context with reasoning traces. [See Comparison Benchmark](cookbook/use_cases/advanced_rag/02_RAG_vs_GraphRAG_Comparison.ipynb)
+- **Efficient Embeddings**
+ FastEmbed by default (lightweight & local)
-**AI Agent Context Engineering** β€” Persistent memory with RAG + knowledge graphs enables context maintenance, action validation, and structured knowledge access.
+- **Agent Memory**
+ Persistent memory using Vector + Graph retrieval
-**Automated Ontology Generation** β€” 6-stage LLM pipeline generates validated OWL ontologies with HermiT/Pellet validation, eliminating manual engineering.
+- **LLM-Agnostic**
+ Works with 100+ LLMs (OpenAI, Groq, HuggingFace, LiteLLM)
-**Production-Grade QA** β€” Conflict detection, deduplication, quality scoring, and provenance tracking ensure trusted, production-ready knowledge graphs.
+- **Pipeline Orchestration**
+ Parallel execution with orchestrator-worker pattern
-**Pipeline Orchestration** β€” Flexible pipeline builder with parallel execution enables scalable processing via orchestrator-worker pattern.
-
-### Core Features at a Glance
-
-| **Feature Category** | **Capabilities** | **Key Benefits** |
-|:---------------------|:-----------------|:------------------|
-| **Data Ingestion** | Multiple formats (PDF, DOCX, HTML, JSON, CSV, databases, APIs, streams, archives) | Universal ingestion, no custom parsers needed |
-| **Semantic Extraction** | NER, relations, triplets, LLM enhancement, **auto-chunking** | Automated discovery with robust error handling |
-| **Knowledge Graphs** | Entity resolution, temporal support, graph analytics, query interface | Production-ready, queryable knowledge structures |
-| **Ontology Generation** | 6-stage LLM pipeline, OWL generation, HermiT/Pellet validation | Automated ontology creation from documents |
-| **GraphRAG** | Hybrid vector + graph retrieval, multi-hop reasoning, LLM-generated responses | 91% accuracy, 30% improvement over vector-only, reasoning traces |
-| **LLM Providers** | Unified interface to 100+ LLMs (Groq, OpenAI, HuggingFace, LiteLLM) | Clean imports, multiple providers, structured output |
-| **Agent Memory** | Persistent memory (Save/Load), Hybrid Retrieval (Vector+Graph), FastEmbed support | Context-aware agents with semantic understanding |
-| **Pipeline Orchestration** | Parallel execution, custom steps, orchestrator-worker pattern | Scalable, flexible data processing |
-| **Quality Assurance** | Conflict detection, deduplication, quality scoring, provenance | Trusted knowledge graphs ready for production |
+- **Production-Grade QA**
+ Conflict detection, deduplication, quality scoring
---
## πŸ‘₯ Who Is This For?
-Semantica is designed for **developers, data engineers, and organizations** building the next generation of AI applications that require semantic understanding and knowledge graphs.
-
-### Who Uses Semantica
-
-**AI/ML Engineers & Data Scientists** β€” Build GraphRAG systems, AI agents, and multi-agent systems.
-
-**Data Engineers** β€” Build scalable pipelines with semantic enrichment.
-
-**Knowledge Engineers & Ontologists** β€” Create knowledge graphs and ontologies with automated pipelines.
-
-**Enterprise Data Teams** β€” Unify semantic layers, improve data quality, resolve conflicts.
-
-**Software & DevOps Engineers** β€” Build semantic APIs and infrastructure with production-ready SDK.
-
-**Analysts & Researchers** β€” Transform data into queryable knowledge graphs for insights.
-
-**Security & Compliance Teams** β€” Threat intelligence, regulatory reporting, audit trails.
-
-**Product Teams & Startups** β€” Rapid prototyping of AI products and semantic features.
+- **AI / ML Engineers** β€” GraphRAG, AI agents, reasoning systems
+- **Data Engineers** β€” Semantic enrichment pipelines
+- **Knowledge Engineers & Ontologists** β€” Automated KG & ontology creation
+- **Enterprise Data Teams** β€” Unified semantic layers & data quality
+- **Security & Compliance Teams** β€” Threat intelligence, audits, traceability
+- **Startups & Product Teams** β€” Rapid AI prototyping
---
## πŸ“¦ Installation
-> **βœ… Available on PyPI!** Semantica is now published on PyPI. Install it with a single command: `pip install semantica`
-
-**Prerequisites:** Python 3.8+ (3.9+ recommended) β€’ pip (latest version)
-
### Install from PyPI (Recommended)
```bash
-# Install latest version from PyPI
pip install semantica
-
-# Or install with optional dependencies
+# or
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 "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/)