Tuesday, September 15, 2026

What is difference between Ontology and Knowledge graph

An ontology in AI is a formal, machine-readable dictionary that defines concepts, categories, and the rules of how they relate to one another within a specific domain. [1]  

What Is Ontology and Why Does It Matter? 


• Defines meaning: It sets the structural rules and baseline definitions (the "grammar") so humans and AI models agree on what data terms mean. 

• Reduces hallucinations: It stops AI agents from guessing definitions using broad statistical probabilities by anchoring answers to explicit, deterministic facts. 

• Enables machine reasoning: It allows systems to automatically deduce hidden rules or facts without manual if-then programming. [3]  


How Is It Related to a Knowledge Graph? 


• The Blueprint and the Building: Think of the ontology as the blueprint or schema (defining what can exist, like Customer and Order), while a knowledge graph is the populated data (recording actual instances, like John Doe placing Order #123). 

• Better together: Without an ontology, a knowledge graph is just a disconnected maze of edges; without a knowledge graph, an ontology is a lifeless theory. [6]  


Is Dgraph Better or Are Other Solutions Better? 

No single database is universally "better"; performance depends entirely on your specific workload and cloud setup. 


• Dgraph: Best if you need native GraphQL support, horizontal scaling via predicate sharding, and fast real-time transaction processing. However, it has a steeper learning curve and high RAM demands for large datasets. 

• Neo4j: Best overall for developer ease, robust graph data science tooling, and deep community mindshare, using its native Cypher query language. 

• Amazon Neptune: Best if you are fully locked into the AWS cloud ecosystem and require a fully managed service that supports both property graphs and semantic W3C RDF/SPARQL standards. 

• TigerGraph: Best for massively parallel, ultra-deep multi-hop analytics over billions of nodes. [7]  


If you tell me what domain your data is in (like finance, healthcare, or e-commerce) and whether you prefer a fully managed cloud service or open-source, I can recommend the ideal database stack for your project. 

AI responses may include mistakes.


[1] https://atlan.com/know/ontology-101-explainer/

[2] https://testerstories.com/2026/03/ai-and-testing-knowledge-graphs-and-ontologies/

[3] https://medium.com/oceanbase-database/ontology-vs-semantic-layer-why-your-ai-agent-needs-both-a2e24c8060a1

[4] https://medium.com/@nc_mike/ontologies-and-knowledge-graphs-for-technical-documentation-297a91b52c15

[5] https://www.dawiso.com/glossary/ontology-in-ai

[6] https://www.puppygraph.com/blog/knowledge-graph-vs-ontology

[7] https://www.tigergraph.com/blog/best-graph-databases/

[8] https://www.youtube.com/watch?v=zGK25YqiKiA

[9] https://www.g2.com/compare/amazon-neptune-vs-dgraph

[10] https://uplatz.com/blog/a-comparative-analysis-of-modern-graph-database-systems/

[11] https://www.puppygraph.com/blog/aws-neptune-vs-neo4j


Sunday, September 13, 2026

Merkle tree hashing technoques

 Yes, the original content or data blocks are hashed at the very bottom of a Merkle Tree to create the leaf nodes. [1, 2]


How Content is Hashed in a Merkle Tree
  • Leaf Nodes (Bottom Level): The actual content—such as files, data chunks, or blockchain transactions—is divided and run through a cryptographic hash function. The resulting outputs become the leaf nodes of the tree.
  • Parent Nodes (Upper Levels): Once the content is converted into hashes at the base, the actual content is no longer hashed higher up. Instead, adjacent pairs of these child hashes are combined (concatenated) and hashed together to form the parent nodes.
  • The Root Hash (Top Level): This pairing and hashing process repeats upward until a single top hash—the Merkle root—summarizes the entire set of underlying content. [1, 6]
Would you like to know how a Merkle proof uses these hashes to verify that a specific piece of content belongs in the tree without checking everything else?
AI responses may include mistakes.

Saturday, September 12, 2026

What is merkle tree

 A Merkle tree (or hash tree) is a hierarchical data structure in cryptography and computer science used to verify large datasets quickly and securely. [1]


How It Works
  • Leaf Nodes: The bottom layer of the tree contains data blocks (like individual transactions) that are run through a cryptographic hash function (like SHA-256) to produce unique text strings called hashes.
  • Branch Nodes: Pairs of adjacent leaf hashes are combined, concatenated, and hashed again to create parent nodes.
  • Merkle Root: This pairing and hashing process repeats upward until a single top hash remains, known as the Merkle root. [1, 2, 3, 4]
Why It Is Useful
  • Data Integrity: If a single piece of underlying data changes, its specific hash changes, which alters every parent hash all the way up to change the final Merkle root.
  • Efficiency: Systems can prove a specific transaction or piece of data belongs in the dataset using a tiny "Merkle proof" without downloading or processing the entire multi-gigabyte database.
  • Common Uses: They power the structural integrity of popular decentralized technologies like Bitcoin and other blockchain networks, version control systems like Git, and peer-to-peer file sharing. [7, 8, 10]
If you'd like, I can explain:How a Merkle proof works step-by-stepWhy Bitcoin specifically relies on this structureLet me know what you want to explore next!
AI responses may include mistakes.

What is turbopuffer vectorsb

 turbopuffer is a serverless vector and full-text search database built natively on object storage designed to cut costs at scale. [1, 2]


Core Architecture
  • Object Storage First: Data is stored primarily on cloud object storage (like
  • or
  • ), drastically lowering storage costs compared to traditional in-memory vector databases.
  • Smart Caching Layer: Uses RAM and NVMe SSD caching in front of object storage to keep hot data fast, achieving sub-10ms latencies for frequent queries.
  • Serverless Scaling: Automatically handles indexing, caching, and storage tiering without requiring cluster management or server bin packing. [2, 6]
Key Features
  • Hybrid Search: Supports vector search, BM25 full-text search, and hybrid queries combining both.
  • Native Metadata Filtering: Allows precise filtering alongside vector similarity matching.
  • High Throughput: Handles massive write volumes and scales namespaces independently past hundreds of millions of documents. [2, 4, 7]
Notable Use Cases
  • Notion: Powers production embeddings for Notion AI search, handling billions of text chunks while cutting millions from their database bill.
  • Cursor: Leverages the object-storage architecture for fast RAG operations across massive codebases, reducing costs significantly. [6, 8]
If you'd like, let me know:What is the scale of your vector data (number of vectors and dimensions)?Are you looking for hybrid search or pure vector similarity?I can help you evaluate if turbopuffer fits your infrastructure needs.
AI responses may include mistakes.

What is front matter in open knowledge format

 Front matter is a block of metadata placed at the very top of a plain text file (typically Markdown). Delimited by triple dashes (---), it acts as machine-readable data that allows AI agents, search indexes, and static site generators to index, filter, and traverse knowledge without having to parse the main document body.

In the Open Knowledge Format (OKF)—the specification published by Google Cloud to package markdown knowledge bases into traversable graphs for AI agents—front matter is written in YAML format.

OKF Front Matter Structure

An OKF concept document requires a structured YAML block at the head of the file, followed by the Markdown body:

---
type: metric
title: Active Monthly Users
description: Count of unique authenticated users who performed at least one action in the last 30 days.
resource: bigquery://analytics_db.tables.user_events
tags:
  - analytics
  - user-growth
timestamp: 2026-06-12T00:00:00Z
status: active
---

Front Matter Fields Breakdown

The specification keeps front matter minimal and extensible. It makes a clear distinction between required, standard optional, and custom keys:

FieldRequirementPurposeExample
typeRequiredDefines the category of the knowledge node (e.g., metric, table, runbook, policy, api).type: metric
titleRecommendedHuman-readable title of the concept node.title: Revenue Definition
descriptionRecommendedConcise summary used by retrieval systems to gauge relevance.description: Core calculation method...
resourceOptionalExternal URI mapping to an underlying dataset, API, or DB table.resource: postgres://db/orders
tagsOptionalCategorization keywords for filtering.tags: [finance, quarter-1]
timestampOptionalProvenance date for tracking currency and staleness.timestamp: 2026-06-12
statusOptionalIndicates context validity (e.g., active, deprecated, draft).status: active

Key Properties

  • Extensibility: You can add custom key-value pairs (e.g., owner: "@data-team") without breaking OKF parsers; compliant tooling must tolerate unknown keys.
  • Decoupled Relationships: While general metadata lives in the front matter, links to other concepts are expressed directly in the Markdown body using standard Markdown links ([Orders Table](/entities/orders.md)), forming a traversable knowledge graph.

Open knowledge format link data tpes

 Open Knowledge (and Open Data) standards do not prescribe a single, rigid "typed link" syntax. Instead, typed links in open knowledge systems are implemented using Linked Data principles, specifically RDF (Resource Description Framework) triplets and established Web Ontologies.

Core Structure: RDF Triplets

In an open knowledge format, connections between data points are expressed as typed relationships using a Subject-Predicate-Object model:

  • Subject: The resource being described (e.g., Entity_A)
  • Predicate (Typed Link): The specific, defined relationship type (e.g., schema:knows or dcterms:creator)
  • Object: The target resource or literal value (e.g., Entity_B)

How Links Are Formally Typed

Rather than using generic hypertext links (<a href="...">), open knowledge frameworks map typed links to standardized Uniform Resource Identifiers (URIs).

MechanismDescriptionExample
Schema.orgStandard vocabulary for web-based structured data[http://schema.org/contributor](http://schema.org/contributor)
Dublin Core (DCTERMS)Common metadata standards for resources[http://purl.org/dc/terms/references](http://purl.org/dc/terms/references)
FOAF (Friend of a Friend)Links connecting people, organizations, and groups[http://xmlns.com/foaf/0.1/knows](http://xmlns.com/foaf/0.1/knows)
OWL / RDFSFormal ontology definitions expressing subclass and equivalency linksowl:sameAs, rdfs:subClassOf

Common Serializations

Open knowledge formats express these typed links using several common file types:

  • JSON-LD: Embeds structured, typed links inside standard JSON objects.
  • Turtle / N-Triples: Human-readable text formats designed specifically for RDF graphs.
  • Wikidata Statements: Open graph property links (e.g., P31 for "instance of", P279 for "subclass of").

Thursday, September 10, 2026

LLM-d infrastructure using Kubernetes

 Here is one of the best video tutorials for this

https://www.youtube.com/watch?v=hBzUokVYQkI