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
Refactor documentation: Comprehensive improvements to structure, formatting, and content
KaifAhmad1ad64a209b183
diff --git a/docs/community-projects.md b/docs/community-projects.mdindex 5ec80fa7..d0490981 100644--- a/docs/community-projects.md+++ b/docs/community-projects.md@@ -2,137 +2,250 @@Projects, integrations, and contributions from the Semantica community.-## Projects Using Semantica+!!! tip "Showcase Your Project"+ Have a project using Semantica? We'd love to feature it! [Submit your project](https://github.com/Hawksight-AI/semantica/discussions/categories/show-and-tell)-### Research Projects+----- **Academic Research**: Knowledge graph construction for research papers-- **Biomedical Analysis**: Drug discovery and genomic analysis-- **Social Network Analysis**: Relationship mapping and analysis+## π Projects Using Semantica++<div class="grid cards" markdown>++- :material-school: **Academic Research**+ ---+ Knowledge graph construction for research papers and scientific literature.++ **Domain**: Research & Academia++- :material-dna: **Biomedical Analysis**+ ---+ Drug discovery, genomic analysis, and medical knowledge graphs.++ **Domain**: Healthcare & Life Sciences++- :material-account-network: **Social Network Analysis**+ ---+ Relationship mapping and community detection in social networks.++ **Domain**: Social Sciences++- :material-domain: **Business Intelligence**+ ---+ Company knowledge bases and corporate intelligence systems.++ **Domain**: Enterprise++- :material-shield-lock: **Cybersecurity**+ ---+ Threat intelligence, incident analysis, and security knowledge graphs.++ **Domain**: Security++- :material-hospital-box: **Healthcare**+ ---+ Medical record processing and patient journey mapping.++ **Domain**: Healthcare++- :material-finance: **Finance**+ ---+ Market analysis, fraud detection, and financial intelligence.++ **Domain**: Finance & Trading++</div>-### Industry Applications+----- **Business Intelligence**: Company knowledge bases-- **Cybersecurity**: Threat intelligence and analysis-- **Healthcare**: Medical record processing-- **Finance**: Market analysis and fraud detection+## π Community Integrations-## Community Contributions+### Vector Database Integrations-### Integrations+<div class="grid cards" markdown>-#### Vector Database Integrations+- :material-database: **Pinecone**+ ---+ Cloud-native vector database integration.++ [View Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/pinecone)-- **Pinecone Integration**: [Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/pinecone)-- **Weaviate Integration**: [Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/weaviate)-- **Qdrant Integration**: [Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/qdrant)+- :material-database-search: **Weaviate**+ ---+ Open-source vector search engine integration.++ [View Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/weaviate)-#### Knowledge Graph Databases+- :material-database-arrow-right: **Qdrant**+ ---+ High-performance vector similarity search.++ [View Example](https://github.com/Hawksight-AI/semantica/tree/main/examples/qdrant)-- **Neo4j Integration**: Export and query with Neo4j-- **Amazon Neptune**: Cloud-based graph database integration-- **ArangoDB**: Multi-model database support+</div>-### Plugins and Extensions+### Knowledge Graph Databases-Community-created plugins:+<div class="grid cards" markdown>-- Custom entity extractors-- Domain-specific exporters-- Integration adapters-- Visualization tools+- :material-graph: **Neo4j**+ ---+ Export and query with the leading graph database.++ **Features**: Cypher queries, graph algorithms-## Showcase Your Project+- :material-aws: **Amazon Neptune**+ ---+ Cloud-based graph database integration.++ **Features**: Managed service, scalable-Have a project using Semantica? We'd love to feature it!+- :material-database-cog: **ArangoDB**+ ---+ Multi-model database support.++ **Features**: Document, graph, key-value-### How to Submit+</div>-1. Create a pull request or issue-2. Include:- - Project description- - Use case- - Code examples (if possible)- - Screenshots or demos- - Link to your project+----### Submission Template+## π οΈ Plugins and Extensions-```markdown-## Project Name+Community-created tools and extensions:-**Description**: Brief description of your project+<div class="grid cards" markdown>-**Use Case**: How you're using Semantica+- :material-puzzle: **Custom Entity Extractors**+ ---+ Domain-specific entity extraction models and patterns.-**Key Features**:-- Feature 1-- Feature 2+- :material-export: **Domain-Specific Exporters**+ ---+ Specialized export formats for various industries.-**Links**:-- GitHub: [link]-- Demo: [link]-- Documentation: [link]-```+- :material-connection: **Integration Adapters**+ ---+ Connectors for popular data sources and platforms.++- :material-chart-box: **Visualization Tools**+ ---+ Enhanced graph visualization and analytics dashboards.-## Community Tutorials+</div>++---++## π Community Tutorials### User-Created Tutorials-- [Tutorial 1](link) - Description-- [Tutorial 2](link) - Description-- [Tutorial 3](link) - Description+Coming soon! Share your tutorials with the community.### Video Tutorials-- [Video 1](link) - Description-- [Video 2](link) - Description+Coming soon! Create and share video guides.-## Contributing+----Want to contribute? Here's how:+## π€ How to Contribute++<div class="grid cards" markdown>++- :material-code-braces: **Code Contributions**+ ---+ 1. Fork the repository+ 2. Create a feature branch+ 3. Make your changes+ 4. Submit a pull request++ [Contributing Guide](https://github.com/Hawksight-AI/semantica/blob/main/CONTRIBUTING.md)++- :material-file-document-edit: **Documentation**+ ---+ - Fix typos+ - Improve examples+ - Add tutorials+ - Translate documentation++- :material-account-group: **Community Support**+ ---+ - Answer questions in discussions+ - Help with issues+ - Share your experiences+ - Provide feedback++- :material-test-tube: **Testing**+ ---+ - Write tests+ - Improve coverage+ - Report bugs+ - Test new features++</div>-### Code Contributions+----1. Fork the repository-2. Create a feature branch-3. Make your changes-4. Submit a pull request+## π― Submit Your Project-See our [Contributing Guide](https://github.com/Hawksight-AI/semantica/blob/main/CONTRIBUTING.md) for details.+### Submission Template-### Documentation Contributions+```markdown+## Project Name++**Description**: Brief description of your project-- Fix typos-- Improve examples-- Add tutorials-- Translate documentation+**Use Case**: How you're using Semantica-### Community Support+**Key Features**:+- Feature 1+- Feature 2+- Feature 3-- Answer questions in discussions-- Help with issues-- Share your experiences-- Provide feedback+**Tech Stack**:+- Semantica modules used+- Other technologies-## Recognition+**Links**:+- GitHub: [link]+- Demo: [link]+- Documentation: [link]++**Screenshots**: (Optional)+```++### How to Submit++1. Go to [GitHub Discussions](https://github.com/Hawksight-AI/semantica/discussions/categories/show-and-tell)+2. Create a new post using the template above+3. Tag it with relevant labels+4. Share your project!++---++## π Recognition### ContributorsThank you to all contributors! See our [Contributors](https://github.com/Hawksight-AI/semantica/graphs/contributors) page.-### Top Contributors+### Featured Projects-- [Contributor 1](link) - Contributions-- [Contributor 2](link) - Contributions+We feature community projects in:+- π Documentation+- βοΈ Blog posts+- π’ Release notes+- π± Social media-## Resources+---++## π Resources- **[GitHub Discussions](https://github.com/Hawksight-AI/semantica/discussions)** - Community discussions- **[GitHub Issues](https://github.com/Hawksight-AI/semantica/issues)** - Bug reports and feature requests- **[Examples Repository](https://github.com/Hawksight-AI/semantica/tree/main/examples)** - More examples+- **[Contributing Guide](https://github.com/Hawksight-AI/semantica/blob/main/CONTRIBUTING.md)** - How to contribute----**Want to be featured?** [Submit your project](https://github.com/Hawksight-AI/semantica/discussions/categories/show-and-tell)!-+!!! success "Get Involved"+ Join our community and help shape the future of Semantica! [Start Contributing](https://github.com/Hawksight-AI/semantica)diff --git a/docs/cookbook.md b/docs/cookbook.mdindex 2fddebf6..65f7f069 100644--- a/docs/cookbook.md+++ b/docs/cookbook.md@@ -4,83 +4,170 @@ Welcome to the **Semantica Cookbook**!This collection of Jupyter notebooks is designed to take you from a beginner to an expert in building semantic AI applications. Whether you're looking for quick recipes or deep-dive tutorials, you'll find it here.+!!! tip "How to use this Cookbook"+ - **Beginners**: Start with the [Core Tutorials](#core-tutorials) to learn the basics.+ - **Developers**: Check out [Advanced Concepts](#advanced-concepts) for deep dives into specific features.+ - **Architects**: Explore [Industry Use Cases](#industry-use-cases) for end-to-end solutions.++!!! note "Prerequisites"+ Before running these notebooks, ensure you have:+ - Python 3.8+ installed+ - A basic understanding of Python and Jupyter+ - An OpenAI API key (for most examples)++---++## οΏ½ Featured Recipes++Hand-picked tutorials to show you the power of Semantica.++<div class="grid cards" markdown>++- :material-robot: **GraphRAG Complete**+ ---+ Build a production-ready Graph Retrieval Augmented Generation system.++ **Topics**: RAG, LLMs, Vector Search, Graph Traversal++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/advanced_rag/GraphRAG_Complete.ipynb)++- :material-graph: **Your First Knowledge Graph**+ ---+ Go from raw text to a queryable knowledge graph in 20 minutes.++ **Topics**: Extraction, Graph Construction, Visualization++ **Difficulty**: Beginner++ [Open Notebook](cookbook/introduction/Your_First_Knowledge_Graph.ipynb)++- :material-shield-alert: **Real-Time Anomaly Detection**+ ---+ Detect anomalies in streaming data using dynamic graphs.++ **Topics**: Streaming, Security, Dynamic Graphs++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/cybersecurity/Anomaly_Detection_Real_Time.ipynb)++</div>+----## π Introduction+## π Core Tutorials-Start here if you are new to the framework. These notebooks cover the essentials.+Essential guides to master the Semantica framework.<div class="grid cards" markdown>- :material-hand-wave: **Welcome to Semantica**---- An interactive introduction to the framework.+ An interactive introduction to the framework's core philosophy.++ **Topics**: Framework Overview, Architecture++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Welcome_to_Semantica.ipynb)- :material-cog: **Configuration Basics**---- Learn how to configure API keys and settings.+ Learn how to configure API keys, environment variables, and settings.- [Open Notebook](cookbook/introduction/Configuration_Basics.ipynb)--- :material-graph: **Your First Knowledge Graph**- ---- Build a simple graph from scratch.+ **Topics**: Configuration, API Keys, Env Vars- [Open Notebook](cookbook/introduction/Your_First_Knowledge_Graph.ipynb)+ **Difficulty**: Beginner++ [Open Notebook](cookbook/introduction/Configuration_Basics.ipynb)- :material-database-import: **Data Ingestion**---- Loading data from files and web sources.+ Techniques for loading data from local files, URLs, and APIs.++ **Topics**: Loaders, Connectors, Async IO++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Data_Ingestion.ipynb)- :material-file-document-outline: **Document Parsing**---- Extracting text from PDFs, DOCX, and more.+ Extracting clean text from complex formats like PDF, DOCX, and HTML.++ **Topics**: OCR, PDF Parsing, Text Extraction++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Document_Parsing.ipynb)- :material-broom: **Data Normalization**---- Cleaning and preparing text.+ Pipelines for cleaning, normalizing, and preparing text.++ **Topics**: Text Cleaning, Unicode, Formatting++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Data_Normalization.ipynb)- :material-account-search: **Entity Extraction**---- Identifying people, places, and organizations.+ Using NER to identify people, organizations, and custom entities.++ **Topics**: NER, Spacy, LLM Extraction++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Entity_Extraction.ipynb)- :material-relation-many-to-many: **Relation Extraction**---- Finding connections between entities.+ Discovering and classifying relationships between entities.++ **Topics**: Relation Classification, Dependency Parsing++ **Difficulty**: Beginner[Open Notebook](cookbook/introduction/Relation_Extraction.ipynb)- :material-vector-square: **Embedding Generation**---- Creating vector representations.+ Creating and managing vector embeddings for semantic search.++ **Topics**: Embeddings, OpenAI, HuggingFace++ **Difficulty**: Intermediate[Open Notebook](cookbook/introduction/Embedding_Generation.ipynb)- :material-database-search: **Vector Store**---- Storing and searching vectors.+ Setting up vector stores for similarity search and retrieval.++ **Difficulty**: Intermediate[Open Notebook](cookbook/introduction/Vector_Store.ipynb)- :material-database-settings: **Graph Store**---- Storing graphs in Neo4j, KuzuDB, or FalkorDB.+ Persisting knowledge graphs in Neo4j, KuzuDB, or FalkorDB.++ **Topics**: Neo4j, Cypher, Persistence++ **Difficulty**: Intermediate[Open Notebook](cookbook/introduction/Graph_Store.ipynb)- :material-sitemap: **Ontology**---- Defining the structure of your knowledge.+ Defining domain schemas and ontologies to structure your data.++ **Topics**: OWL, RDF, Schema Design++ **Difficulty**: Intermediate[Open Notebook](cookbook/introduction/Ontology.ipynb)@@ -90,67 +177,107 @@ Start here if you are new to the framework. These notebooks cover the essentials## π§ Advanced Concepts-Deep dive into advanced features and customization.+Deep dive into advanced features, customization, and complex workflows.<div class="grid cards" markdown>- :material-flask: **Advanced Extraction**---- Techniques for complex entity and relation extraction.+ Custom extractors, LLM-based extraction, and complex pattern matching.++ **Topics**: Custom Models, Regex, LLMs++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Advanced_Extraction.ipynb)- :material-chart-network: **Advanced Graph Analytics**---- In-depth graph analysis algorithms.+ Centrality, community detection, and pathfinding algorithms.++ **Topics**: PageRank, Louvain, Shortest Path++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Advanced_Graph_Analytics.ipynb)- :material-monitor-dashboard: **Complete Visualization Suite**---- Comprehensive guide to visualization tools.+ Creating interactive, publication-ready visualizations of your graphs.++ **Topics**: PyVis, NetworkX, D3.js++ **Difficulty**: Intermediate[Open Notebook](cookbook/advanced/Complete_Visualization_Suite.ipynb)- :material-scale-balance: **Conflict Resolution**---- Advanced methods for resolving data conflicts.+ Strategies for handling contradictory information from multiple sources.++ **Topics**: Truth Discovery, Voting, Confidence++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Conflict_Resolution_Strategies.ipynb)- :material-export: **Multi-Format Export**---- Exporting data to various formats.+ Exporting to RDF, OWL, JSON-LD, and NetworkX formats.++ **Topics**: Serialization, Interoperability++ **Difficulty**: Intermediate[Open Notebook](cookbook/advanced/Multi_Format_Export.ipynb)- :material-source-merge: **Multi-Source Integration**---- Integrating data from disparate sources.+ Merging data from disparate sources into a unified graph.++ **Topics**: Entity Resolution, Merging, Fusion++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Multi_Source_Data_Integration.ipynb)- :material-pipe: **Pipeline Orchestration**---- Building and managing complex pipelines.+ Building robust, automated data processing pipelines.++ **Topics**: Workflows, Automation, Error Handling++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Pipeline_Orchestration.ipynb)- :material-brain: **Reasoning and Inference**---- Applying logical reasoning to your graph.+ Using logical reasoning to infer new knowledge from existing facts.++ **Topics**: Logic Rules, Inference Engines++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Reasoning_and_Inference.ipynb)- :material-layers: **Semantic Layer Construction**---- Building a robust semantic layer.+ Building a semantic layer over your data warehouse or lake.++ **Topics**: Semantic Layer, Data Warehouse++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Semantic_Layer_Construction.ipynb)- :material-clock-outline: **Temporal Knowledge Graphs**---- Working with time-aware graphs.+ Modeling and querying data that changes over time.++ **Topics**: Time Series, Temporal Logic++ **Difficulty**: Advanced[Open Notebook](cookbook/advanced/Temporal_Knowledge_Graphs.ipynb)@@ -158,115 +285,267 @@ Deep dive into advanced features and customization.----## π‘ Use Cases+## π Industry Use Cases-Real-world examples and applications across various industries.+Real-world examples and end-to-end applications across various industries.-### Advanced RAG+### Biomedical<div class="grid cards" markdown>-- :material-robot: **GraphRAG Complete**+- :material-pill: **Drug Discovery Pipeline**---- End-to-end implementation of Graph Retrieval Augmented Generation.+ Accelerating drug discovery by connecting genes, proteins, and drugs.- [Open Notebook](cookbook/use_cases/advanced_rag/GraphRAG_Complete.ipynb)+ **Topics**: Bioinformatics, KG Construction++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/biomedical/Drug_Discovery_Pipeline.ipynb)++- :material-dna: **Genomic Variant Analysis**+ ---+ Analyzing genomic variants and their implications for disease.++ **Topics**: Genomics, Variant Calling++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/biomedical/Genomic_Variant_Analysis.ipynb)</div>-### Biomedical+### Healthcare<div class="grid cards" markdown>-- :material-pill: **Drug Discovery Pipeline**+- :material-hospital-box: **Clinical Reports Processing**---- Accelerating drug discovery with knowledge graphs.+ Processing and structuring unstructured clinical reports.- [Open Notebook](cookbook/use_cases/biomedical/Drug_Discovery_Pipeline.ipynb)+ **Topics**: NLP, Medical Records++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/healthcare/Clinical_Reports_Processing.ipynb)-- :material-dna: **Genomic Variant Analysis**+- :material-virus: **Disease Network Analysis**---- Analyzing genomic variants and their implications.+ Analyzing disease networks and comorbidities for population health.- [Open Notebook](cookbook/use_cases/biomedical/Genomic_Variant_Analysis.ipynb)+ **Topics**: Disease Modeling, Comorbidity Networks++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/healthcare/Disease_Network_Analysis.ipynb)-</div>+- :material-pill-multiple: **Drug Interactions Analysis**+ ---+ Identifying potential drug interactions and contraindications.++ **Topics**: Pharmacology, Drug Safety++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/healthcare/Drug_Interactions_Analysis.ipynb)-### Blockchain & Finance+- :material-robot-love: **Healthcare GraphRAG Hybrid**+ ---+ Hybrid RAG system for healthcare knowledge retrieval.++ **Topics**: RAG, Medical Knowledge, LLMs++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/healthcare/Healthcare_GraphRAG_Hybrid.ipynb)-<div class="grid cards" markdown>+- :material-database-plus: **Medical Database Integration**+ ---+ Integrating multiple medical databases into unified knowledge graphs.++ **Topics**: Data Integration, Medical Databases++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/healthcare/Medical_Database_Integration.ipynb)-- :material-bitcoin: **DeFi Protocol Intelligence**+- :material-book-medical: **Medical Literature GraphRAG**---- Analyzing decentralized finance protocols.+ Querying medical literature using GraphRAG for evidence-based insights.- [Open Notebook](cookbook/use_cases/blockchain/DeFi_Protocol_Intelligence.ipynb)+ **Topics**: Literature Mining, Evidence-Based Medicine++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/healthcare/Medical_Literature_GraphRAG.ipynb)++- :material-account-heart: **Patient Records Temporal**+ ---+ Analyzing patient records over time to track health progression.++ **Topics**: Temporal Analysis, Patient Journeys++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/healthcare/Patient_Records_Temporal.ipynb)++</div>++### Finance++<div class="grid cards" markdown>- :material-finance: **Financial Data Integration**---- Merging financial data from multiple sources.+ Merging financial data from reports, news, and market feeds.++ **Topics**: Finance, Data Fusion++ **Difficulty**: Intermediate[Open Notebook](cookbook/use_cases/finance/Financial_Data_Integration.ipynb)+- :material-file-chart: **Financial Reports Analysis**+ ---+ Extracting insights from financial reports and earnings calls.++ **Topics**: Financial Analysis, NLP++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/finance/Financial_Reports_Analysis.ipynb)+- :material-incognito: **Fraud Detection**---- Identifying fraudulent activities and patterns.+ Identifying fraudulent activities and patterns in transaction networks.++ **Topics**: Anomaly Detection, Graph Mining++ **Difficulty**: Advanced[Open Notebook](cookbook/use_cases/finance/Fraud_Detection.ipynb)+- :material-chart-box: **Investment Analysis Hybrid RAG**+ ---+ AI-powered investment analysis using hybrid RAG approach.++ **Topics**: Investment Research, RAG, Financial Analysis++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/finance/Investment_Analysis_Hybrid_RAG.ipynb)+- :material-chart-line: **Market Intelligence**---- Gathering and analyzing market intelligence.+ Gathering and analyzing market intelligence for trading signals.++ **Topics**: Market Analysis, Sentiment Analysis++ **Difficulty**: Intermediate[Open Notebook](cookbook/use_cases/finance/Market_Intelligence.ipynb)+- :material-gavel: **Regulatory Compliance**+ ---+ Ensuring compliance with financial regulations using knowledge graphs.++ **Topics**: Compliance, Regulatory Analysis++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/finance/Regulatory_Compliance.ipynb)++</div>++### Blockchain++<div class="grid cards" markdown>++- :material-bitcoin: **DeFi Protocol Intelligence**+ ---+ Analyzing decentralized finance protocols and transaction flows.++ **Topics**: Blockchain, DeFi, Smart Contracts++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/blockchain/DeFi_Protocol_Intelligence.ipynb)++- :material-network: **Transaction Network Analysis**+ ---+ Mapping and analyzing blockchain transaction networks.++ **Topics**: Blockchain Analytics, Network Analysis++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/blockchain/Transaction_Network_Analysis.ipynb)+</div>### Cybersecurity<div class="grid cards" markdown>-- :material-shield-alert: **Anomaly Detection**+- :material-shield-alert: **Anomaly Detection Real-Time**---- Detecting anomalies in real-time streams.+ Detecting anomalies in real-time network traffic streams.++ **Topics**: Network Security, Streaming++ **Difficulty**: Advanced[Open Notebook](cookbook/use_cases/cybersecurity/Anomaly_Detection_Real_Time.ipynb)- :material-shield-search: **Incident Analysis**---- Analyzing security incidents and breaches.+ Analyzing security incidents and breaches using graph forensics.++ **Topics**: Incident Response, Forensics++ **Difficulty**: Intermediate[Open Notebook](cookbook/use_cases/cybersecurity/Incident_Analysis.ipynb)- :material-shield-link-variant: **Threat Correlation**---- Correlating threats across different vectors.+ Correlating threats across different vectors to identify campaigns.++ **Topics**: Threat Intel, Correlation++ **Difficulty**: Advanced[Open Notebook](cookbook/use_cases/cybersecurity/Threat_Correlation.ipynb)-</div>--### Healthcare--<div class="grid cards" markdown>--- :material-hospital-box: **Clinical Reports**+- :material-robot-angry: **Threat Intelligence Hybrid RAG**---- Processing and structuring clinical reports.+ Combining RAG with threat intelligence for enhanced security insights.- [Open Notebook](cookbook/use_cases/healthcare/Clinical_Reports_Processing.ipynb)+ **Topics**: Threat Intelligence, RAG, Security++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/cybersecurity/Threat_Intelligence_Hybrid_RAG.ipynb)-- :material-virus: **Disease Network Analysis**+- :material-shield-plus: **Threat Intelligence Integration**---- Analyzing disease networks and comorbidities.+ Integrating threat feeds into a unified knowledge graph.- [Open Notebook](cookbook/use_cases/healthcare/Disease_Network_Analysis.ipynb)+ **Topics**: STIX/TAXII, Threat Feeds, Integration++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/cybersecurity/Threat_Intelligence_Integration.ipynb)-- :material-account-heart: **Patient Records Temporal**+- :material-bug: **Vulnerability Tracking**---- Analyzing patient records over time.+ Tracking and managing system vulnerabilities using knowledge graphs.- [Open Notebook](cookbook/use_cases/healthcare/Patient_Records_Temporal.ipynb)+ **Topics**: CVE, Vulnerability Management++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/cybersecurity/Vulnerability_Tracking.ipynb)</div>@@ -276,40 +555,172 @@ Real-world examples and applications across various industries.- :material-account-network: **Criminal Network Analysis**---- Analyze criminal networks with graph analytics.+ Analyze criminal networks with graph analytics and key player detection.++ **Topics**: Forensics, Social Network Analysis++ **Difficulty**: Advanced[Open Notebook](cookbook/use_cases/intelligence/Criminal_Network_Analysis.ipynb)-- :material-gavel: **Law Enforcement**+- :material-file-chart-outline: **Network Analysis Intelligence Reports**---- Process forensic evidence and analyze case files.+ Analyzing intelligence reports for network insights and patterns.++ **Topics**: Intelligence Analysis, Network Mapping- [Open Notebook](cookbook/use_cases/intelligence/Law_Enforcement_Forensics.ipynb)+ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/intelligence/Network_Analysis_Intelligence_Reports.ipynb)++</div>++### Trading-- :material-eye: **Intelligence Analysis**+<div class="grid cards" markdown>++- :material-chart-areaspline: **Market Data Analysis**---- Comprehensive intelligence analysis using Orchestrator-Worker pattern.+ Analyzing trading market data for patterns and opportunities.++ **Topics**: Trading, Market Analysis++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/trading/Market_Data_Analysis.ipynb)++- :material-newspaper-variant: **News Sentiment Analysis**+ ---+ Analyzing news sentiment for trading signals and market predictions.++ **Topics**: Sentiment Analysis, Trading Signals++ **Difficulty**: Intermediate- [Open Notebook](cookbook/use_cases/intelligence/Intelligence_Analysis.ipynb)+ [Open Notebook](cookbook/use_cases/trading/News_Sentiment_Analysis.ipynb)++- :material-clock-fast: **Real-Time Market Data**+ ---+ Processing real-time market data for algorithmic trading.++ **Topics**: Real-Time Processing, Market Data++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/trading/Real_Time_Market_Data.ipynb)++- :material-monitor-dashboard: **Real-Time Monitoring**+ ---+ Monitoring trading systems and positions in real-time.++ **Topics**: Monitoring, Real-Time Systems++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/trading/Real_Time_Monitoring.ipynb)++- :material-shield-check: **Risk Assessment**+ ---+ Assessing trading risks using knowledge graphs and analytics.++ **Topics**: Risk Management, Portfolio Analysis++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/trading/Risk_Assessment.ipynb)++- :material-history: **Strategy Backtesting**+ ---+ Backtesting trading strategies using historical data and graphs.++ **Topics**: Backtesting, Strategy Optimization++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/trading/Strategy_Backtesting.ipynb)</div>-### Renewable Energy & Supply Chain+### Renewable Energy<div class="grid cards" markdown>- :material-wind-turbine: **Energy Market Analysis**---- Analyzing trends in the energy market.+ Analyzing trends and pricing in the renewable energy market.++ **Topics**: Energy, Time Series++ **Difficulty**: Intermediate[Open Notebook](cookbook/use_cases/renewable_energy/Energy_Market_Analysis.ipynb)-- :material-truck-delivery: **Supply Chain Integration**+- :material-leaf: **Environmental Impact**+ ---+ Assessing environmental impact of energy projects and policies.++ **Topics**: Environmental Science, Impact Analysis++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/renewable_energy/Environmental_Impact.ipynb)++- :material-transmission-tower: **Grid Management**---- Integrating supply chain data.+ Optimizing power grid management and distribution.++ **Topics**: Grid Optimization, Energy Distribution++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/renewable_energy/Grid_Management.ipynb)++- :material-solar-power: **Resource Optimization**+ ---+ Optimizing renewable energy resources and generation.++ **Topics**: Resource Management, Optimization++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/renewable_energy/Resource_Optimization.ipynb)++- :material-truck-cargo-container: **Supply Chain Analysis**+ ---+ Analyzing the renewable energy supply chain for optimization.++ **Topics**: Supply Chain, Energy Sector++ **Difficulty**: Intermediate++ [Open Notebook](cookbook/use_cases/renewable_energy/Supply_Chain_Analysis.ipynb)++</div>++### Supply Chain++<div class="grid cards" markdown>++- :material-truck-delivery: **Supply Chain Data Integration**+ ---+ Integrating supply chain data to optimize logistics and reduce risk.++ **Topics**: Logistics, Risk Management++ **Difficulty**: Advanced[Open Notebook](cookbook/use_cases/supply_chain/Supply_Chain_Data_Integration.ipynb)+- :material-alert-octagon: **Supply Chain Risk Management**+ ---+ Managing and mitigating supply chain risks using knowledge graphs.++ **Topics**: Risk Management, Supply Chain Resilience++ **Difficulty**: Advanced++ [Open Notebook](cookbook/use_cases/supply_chain/Supply_Chain_Risk_Management.ipynb)+</div>---@@ -334,3 +745,9 @@ To run these notebooks locally:```bashjupyter notebook```++!!! tip "Using Docker"+ You can also run the cookbook using Docker:+ ```bash+ docker run -p 8888:8888 hawksight/semantica-cookbook+ ```diff --git a/docs/examples.md b/docs/examples.mdindex 1b9ab908..ee0b0c2e 100644--- a/docs/examples.md+++ b/docs/examples.md@@ -43,7 +43,7 @@ Real-world examples and use cases for Semantica.### Example 1: Basic Knowledge Graph-**Difficulty**: Beginner | **Time**: 5 min+**Difficulty**: BeginnerBuild a knowledge graph from a single document.@@ -66,7 +66,7 @@ print(f"Relationships: {len(kg['relationships'])}")### Example 2: Entity Extraction-**Difficulty**: Beginner | **Time**: 5 min+**Difficulty**: BeginnerExtract entities from text using Named Entity Recognition.@@ -83,7 +83,7 @@ for entity in entities["entities"]:### Example 3: Multi-Source Integration-**Difficulty**: Beginner | **Time**: 5 min+**Difficulty**: BeginnerCombine data from multiple sources into a unified knowledge graph.@@ -106,7 +106,7 @@ print(f"Unified graph: {len(result['knowledge_graph']['entities'])} entities")### Example 4: Conflict Resolution-**Difficulty**: Intermediate | **Time**: 15 min+**Difficulty**: IntermediateResolve conflicts in data from multiple sources.@@ -125,7 +125,7 @@ resolved = resolver.resolve_conflicts(conflicts)### Example 5: Custom Configuration-**Difficulty**: Intermediate | **Time**: 15 min+**Difficulty**: IntermediateUse custom configuration for specific use cases.@@ -145,7 +145,7 @@ result = semantica.build_knowledge_base(["document.pdf"])### Example 6: Incremental Graph Building-**Difficulty**: Intermediate | **Time**: 15 min+**Difficulty**: IntermediateBuild knowledge graph incrementally.@@ -168,7 +168,7 @@ merged_kg = semantica.kg.merge([kg1, kg2])### Example 7: Graph Store (Persistent Storage)-**Difficulty**: Intermediate | **Time**: 30 min+**Difficulty**: IntermediateStore and query knowledge graphs in a persistent graph database like Neo4j.@@ -194,7 +194,7 @@ store.close()### Example 8: FalkorDB for Real-Time Applications-**Difficulty**: Intermediate | **Time**: 25 min+**Difficulty**: IntermediateUltra-fast graph queries for LLM applications using FalkorDB.@@ -220,7 +220,7 @@ store.close()### Example 9: Streaming Data Processing-**Difficulty**: Advanced | **Time**: 45 min+**Difficulty**: AdvancedProcess data streams in real-time.@@ -242,7 +242,7 @@ for batch in stream_ingestor.stream(batch_size=100):### Example 10: Batch Processing Large Datasets-**Difficulty**: Intermediate | **Time**: 30 min+**Difficulty**: IntermediateProcess large datasets efficiently with batching.diff --git a/docs/faq.md b/docs/faq.mdindex 6a0040b5..e90a0d22 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -2,210 +2,294 @@Common questions and answers about Semantica.-## General Questions+!!! tip "Can't find your question?"+ Check our [GitHub Discussions](https://github.com/Hawksight-AI/semantica/discussions) or [open an issue](https://github.com/Hawksight-AI/semantica/issues)-### What is Semantica?--Semantica is an open-source framework for building semantic layers and knowledge graphs from unstructured data. It transforms raw data into structured, queryable knowledge that powers AI applications.--### What can I use Semantica for?--- Building knowledge graphs from documents-- Creating semantic layers for AI applications-- Extracting entities and relationships from text-- Powering GraphRAG systems-- Integrating data from multiple sources-- Building AI agent memory systems--### Is Semantica free?--Yes! Semantica is 100% open source and free to use under the MIT License.--## Installation+----### How do I install Semantica?+## π― General Questions-```bash-pip install semantica-```+<div class="grid cards" markdown>-See the [Installation Guide](installation.md) for detailed instructions.+- **What is Semantica?**+ ---+ Semantica is an open-source framework for building semantic layers and knowledge graphs from unstructured data. It transforms raw data into structured, queryable knowledge that powers AI applications.-### What Python version do I need?+- **What can I use Semantica for?**+ ---+ - Building knowledge graphs from documents+ - Creating semantic layers for AI applications+ - Extracting entities and relationships+ - Powering GraphRAG systems+ - Integrating multi-source data+ - Building AI agent memory-Python 3.8 or higher. Python 3.11+ is recommended.+- **Is Semantica free?**+ ---+ Yes! Semantica is 100% open source and free to use under the MIT License.-### Do I need GPU?+- **What makes Semantica different?**+ ---+ - **Modular**: Use only what you need+ - **Extensible**: Plug in custom models+ - **Production-ready**: Built for scale+ - **Open source**: Fully transparent-No, GPU is optional. Semantica works on CPU, but GPU acceleration is available for faster processing.+</div>-## Usage+----### How do I get started?+## π» Installation & Setup-1. Install Semantica: `pip install semantica`-2. Follow the [Quick Start Guide](quickstart.md)-3. Try the [Examples](examples.md)+<div class="grid cards" markdown>-### Can I process PDF files?+- **How do I install Semantica?**+ ---+ ```bash+ pip install semantica+ ```+ See the [Installation Guide](installation.md) for details.-Yes! Semantica supports PDF, DOCX, HTML, JSON, CSV, and many other formats.+- **What Python version do I need?**+ ---+ Python 3.8 or higher. Python 3.11+ is recommended for best performance.-### How do I extract entities from text?+- **Do I need a GPU?**+ ---+ No, GPU is optional. Semantica works on CPU, but GPU acceleration is available for faster processing.-```python-from semantica import Semantica+- **How do I get started?**+ ---+ 1. Install: `pip install semantica`+ 2. Follow the [Quick Start Guide](quickstart.md)+ 3. Try the [Examples](examples.md)-semantica = Semantica()-result = semantica.semantic_extract.extract_entities("Your text here")-entities = result["entities"]-```+</div>-### Can I use my own models?+----Yes, Semantica is extensible. You can plug in custom models for entity extraction, embeddings, etc.+## π Knowledge Graphs-## Knowledge Graphs+<div class="grid cards" markdown>-### What is a knowledge graph?+- **What is a knowledge graph?**+ ---+ A structured representation where entities (nodes) are connected by relationships (edges). It captures semantic meaning and relationships in data.-A knowledge graph is a structured representation where entities (nodes) are connected by relationships (edges). It captures semantic meaning and relationships in data.+- **How do I build a knowledge graph?**+ ---+ ```python+ from semantica import Semantica++ semantica = Semantica()+ result = semantica.build_knowledge_base(["document.pdf"])+ kg = result["knowledge_graph"]+ ```-### How do I build a knowledge graph?+- **Can I merge multiple knowledge graphs?**+ ---+ Yes! Use the `merge` method:+ ```python+ merged = semantica.kg.merge([kg1, kg2, kg3])+ ```-```python-from semantica import Semantica+- **How do I visualize a knowledge graph?**+ ---+ ```python+ semantica.kg.visualize(kg, output_path="graph.html")+ ```-semantica = Semantica()-result = semantica.build_knowledge_base(["document.pdf"])-kg = result["knowledge_graph"]-```+</div>-### Can I merge multiple knowledge graphs?+----Yes! Use the `merge` method:+## π§ Usage & Features-```python-merged = semantica.kg.merge([kg1, kg2, kg3])-```+<div class="grid cards" markdown>-### How do I visualize a knowledge graph?+- **Can I process PDF files?**+ ---+ Yes! Semantica supports PDF, DOCX, HTML, JSON, CSV, and many other formats.-```python-semantica.kg.visualize(kg, output_path="graph.html")-```+- **How do I extract entities from text?**+ ---+ ```python+ from semantica import Semantica++ semantica = Semantica()+ result = semantica.semantic_extract.extract_entities("Your text")+ entities = result["entities"]+ ```-## Conflict Resolution+- **Can I use my own models?**+ ---+ Yes, Semantica is extensible. You can plug in custom models for entity extraction, embeddings, and more.-### What is conflict resolution?+- **What export formats are supported?**+ ---+ - RDF/XML+ - OWL (Ontology)+ - JSON+ - CSV+ - YAML+ - And more-When the same entity appears in multiple sources with different information, conflict resolution determines which information to use.+</div>-### What strategies are available?+----- **Voting**: Majority wins-- **Credibility Weighted**: Weight by source credibility-- **Most Recent**: Use latest information-- **Highest Confidence**: Use highest confidence score-- **First Seen**: Use first encountered value+## βοΈ Conflict Resolution-### How do I set a resolution strategy?+<div class="grid cards" markdown>-```python-from semantica.conflicts import ConflictResolver+- **What is conflict resolution?**+ ---+ When the same entity appears in multiple sources with different information, conflict resolution determines which information to use.-resolver = ConflictResolver(default_strategy="voting")-```+- **What strategies are available?**+ ---+ - **Voting**: Majority wins+ - **Credibility Weighted**: Weight by source credibility+ - **Most Recent**: Use latest information+ - **Highest Confidence**: Use highest confidence score-## Export & Integration+- **How do I set a resolution strategy?**+ ---+ ```python+ from semantica.conflicts import ConflictResolver++ resolver = ConflictResolver(default_strategy="voting")+ ```-### What formats can I export to?+</div>-- RDF/XML-- OWL (Ontology)-- JSON-- CSV-- YAML-- And more+----### Can I use Semantica with other tools?+## π Integration-Yes! Semantica exports to standard formats that work with:-- Neo4j-- Graph databases-- RDF stores-- Vector databases-- Any tool that accepts RDF/JSON/CSV+<div class="grid cards" markdown>-## Performance+- **Can I use Semantica with other tools?**+ ---+ Yes! Semantica exports to standard formats that work with:+ - Neo4j+ - Graph databases+ - RDF stores+ - Vector databases+ - Any tool that accepts RDF/JSON/CSV-### How fast is Semantica?+- **Does it work with LangChain?**+ ---+ Yes, Semantica can be integrated with LangChain for RAG applications.-Performance depends on:-- Document size-- Number of documents-- Hardware (CPU/GPU)-- Configuration options+- **Can I connect to databases?**+ ---+ Yes, Semantica supports connections to Neo4j, KuzuDB, FalkorDB, and other graph databases.-For typical documents, processing takes seconds to minutes.+</div>-### Can I process large datasets?+----Yes, but consider:-- Processing in batches-- Using GPU acceleration-- Incremental building-- Optimizing configuration+## β‘ Performance++<div class="grid cards" markdown>++- **How fast is Semantica?**+ ---+ Performance depends on:+ - Document size+ - Number of documents+ - Hardware (CPU/GPU)+ - Configuration options++ For typical documents, processing takes seconds to minutes.++- **Can I process large datasets?**+ ---+ Yes, but consider:+ - Processing in batches+ - Using GPU acceleration+ - Incremental building+ - Optimizing configuration++- **How can I improve performance?**+ ---+ - Enable GPU if available+ - Process in smaller batches+ - Use faster models+ - Optimize configuration+ - Cache embeddings++</div>-## Troubleshooting+----### Installation fails+## π Troubleshooting-- Upgrade pip: `pip install --upgrade pip`-- Use virtual environment-- Check Python version: `python --version`+<div class="grid cards" markdown>-### No entities extracted+- **Installation fails**+ ---+ - Upgrade pip: `pip install --upgrade pip`+ - Use virtual environment+ - Check Python version: `python --version`-- Verify document contains text (not just images)-- Check document format is supported-- Review extraction configuration+- **No entities extracted**+ ---+ - Verify document contains text (not just images)+ - Check document format is supported+ - Review extraction configuration-### Memory errors+- **Memory errors**+ ---+ - Process documents one at a time+ - Reduce batch sizes+ - Use smaller models+ - Increase available RAM-- Process documents one at a time-- Reduce batch sizes-- Use smaller models-- Increase available RAM+- **Slow processing**+ ---+ - Enable GPU if available+ - Process in smaller batches+ - Optimize configuration+ - Use faster models-### Slow processing+</div>-- Enable GPU if available-- Process in smaller batches-- Optimize configuration-- Use faster models+----## Getting Help+## π€ Getting Help-### Where can I get help?+<div class="grid cards" markdown>-- **Documentation**: This site-- **GitHub Issues**: [Report bugs](https://github.com/Hawksight-AI/semantica/issues)-- **Discussions**: [Ask questions](https://github.com/Hawksight-AI/semantica/discussions)+- **Where can I get help?**+ ---+ - **Documentation**: This site+ - **GitHub Issues**: [Report bugs](https://github.com/Hawksight-AI/semantica/issues)+ - **Discussions**: [Ask questions](https://github.com/Hawksight-AI/semantica/discussions)-### How do I report a bug?+- **How do I report a bug?**+ ---+ Open an issue on [GitHub](https://github.com/Hawksight-AI/semantica/issues) with:+ - Description of the problem+ - Steps to reproduce+ - Expected vs actual behavior+ - Environment details-Open an issue on [GitHub](https://github.com/Hawksight-AI/semantica/issues) with:-- Description of the problem-- Steps to reproduce-- Expected vs actual behavior-- Environment details+- **Can I contribute?**+ ---+ Yes! We welcome contributions. See our [Contributing Guide](https://github.com/Hawksight-AI/semantica/blob/main/CONTRIBUTING.md).-### Can I contribute?+- **How do I request a feature?**+ ---+ Open a feature request on [GitHub Issues](https://github.com/Hawksight-AI/semantica/issues) with:+ - Use case description+ - Proposed solution+ - Benefits to the community-Yes! We welcome contributions. See our [Contributing Guide](https://github.com/Hawksight-AI/semantica/blob/main/CONTRIBUTING.md).+</div>----Still have questions? Check the [API Reference](api.md) or [open an issue](https://github.com/Hawksight-AI/semantica/issues).-+!!! question "Still have questions?"+ Check the [API Reference](reference/core.md), browse the [Cookbook](cookbook.md), or [open a discussion](https://github.com/Hawksight-AI/semantica/discussions)diff --git a/docs/learning-more.md b/docs/learning-more.mdindex 75f4dd74..cbdbb27b 100644--- a/docs/learning-more.md+++ b/docs/learning-more.md@@ -15,7 +15,7 @@ Additional resources, tutorials, and advanced learning materials for Semantica.---Perfect for those new to Semantica and knowledge graphs.- **Time**: 1-2 hours+[Start Path](#beginner-path-1-2-hours)@@ -23,7 +23,7 @@ Additional resources, tutorials, and advanced learning materials for Semantica.---For users comfortable with basics who want to build production applications.- **Time**: 4-6 hours+[Start Path](#intermediate-path-4-6-hours)@@ -31,7 +31,7 @@ Additional resources, tutorials, and advanced learning materials for Semantica.---For experienced users building enterprise applications.- **Time**: 8+ hours+[Start Path](#advanced-path-8-hours)diff --git a/docs/use-cases.md b/docs/use-cases.mdindex 685038c3..e5251345 100644--- a/docs/use-cases.md+++ b/docs/use-cases.md@@ -42,7 +42,7 @@ Semantica is designed to solve complex data challenges across various domains. T**Goal**: Ingest PDFs, extract entities (Authors, Concepts, Methods), and build a citation network.- **Difficulty**: Beginner | **Time**: 30 min+ **Difficulty**: Beginner- :material-dna: **Biomedical Knowledge Graphs**---@@ -50,7 +50,7 @@ Semantica is designed to solve complex data challenges across various domains. T**Goal**: Connect genes, proteins, drugs, and diseases from scientific literature and databases.- **Difficulty**: Intermediate | **Time**: 1-2 hours+ **Difficulty**: Intermediate</div>@@ -276,7 +276,7 @@ ontology = ontology_gen.generate_from_graph(kg)!!! abstract "Use Case"Analyze contracts and legal texts to extract clauses, identify relationships, and understand document structure.-**Difficulty**: Intermediate | **Time**: 1-2 hours | **Domain**: Legal+**Difficulty**: Intermediate| **Domain**: Legal**Prerequisites**:- Legal document samples (contracts, agreements)@@ -309,7 +309,7 @@ print(f"Found {len(clause_rels)} clause relationships")!!! abstract "Use Case"Analyze social media content to extract sentiment, trends, and relationships between users and topics.-**Difficulty**: Beginner | **Time**: 30 min | **Domain**: Social Media+**Difficulty**: Beginner| **Domain**: Social Media**Prerequisites**:- Social media data (JSON, CSV)@@ -341,7 +341,7 @@ print(f"Hashtags: {len(hashtags)}")!!! abstract "Use Case"Build a knowledge base from support tickets, documentation, and FAQs to improve customer service.-**Difficulty**: Beginner | **Time**: 30 min | **Domain**: Customer Support+**Difficulty**: Beginner| **Domain**: Customer Support**Prerequisites**:- Support tickets or documentation