Monday, September 21, 2026

What is WorkIQ?

 Work IQ is an AI-powered workplace intelligence layer from Microsoft that acts as the "brain" behind Microsoft 365 Copilot and custom AI agents. [1, 2] 

It continuously analyzes and semantically indexes your organizational data—connecting unstructured files (SharePoint documents, Outlook emails, Teams chats and meetings) with structured business data (Dynamics 365 and Power Apps)—so AI tools instantly understand your job, projects, and work patterns without requiring detailed manual prompts. [2, 3, 4] 

## Core Components


* Data & Context: Safely connects to enterprise data to map out relationships, timelines, and communications. [3, 4] 

* Memory & Skills: Retains implicit learning from work habits and utilizes built-in tools for actions like scheduling, file generation, and workflow automation. [4, 5] 

* Security & Governance: Automatically applies your existing enterprise security permissions, sensitivity labels, and Data Loss Prevention (DLP) policies without training foundation models on your private corporate data. [6, 7] 

* APIs: Accessible to developers and applications via [Work IQ API](https://www.microsoft.com/en-us/work-iq) endpoints like REST, Model Context Protocol (MCP), and Agent-to-Agent (A2A) protocols. [1, 7] 


If you'd like, let me know:


* Are you looking to build a custom AI agent using Work IQ?

* Do you need help with admin settings and governance in Microsoft 365?



[1] [https://learn.microsoft.com](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/work-iq/)

[2] [https://m.youtube.com](https://m.youtube.com/shorts/B9jID_ycpBE)

[3] [https://blogs.perficient.com](https://blogs.perficient.com/introducing-microsoft-work-iq-the-intelligence-layer-for-agents/)

[4] [https://www.youtube.com](https://www.youtube.com/watch?v=9JQCYDi_YUE&vl=en)

[5] [https://www.youtube.com](https://www.youtube.com/shorts/LPAWVi32WRw?vl=en)

[6] [https://www.reddit.com](https://www.reddit.com/r/microsoft_365_copilot/comments/1rg1h97/what_is_work_iq_in_microsoft_365_copilot_and_why/)

[7] [https://www.microsoft.com](https://www.microsoft.com/en-us/microsoft-365/work-iq)



How to setup n8n docker instance with tunnel

 there are two options, with ngrok and cloudflare. Important screenshots below 





reference: https://www.youtube.com/watch?v=O9dpO81dEQ0



What is BaseTen LLM inferencing

[Baseten](https://www.baseten.co/solutions/llms/) is a production-grade machine learning infrastructure platform that specializes in high-throughput, low-latency AI model inference, specifically for large language models (LLMs) and generative AI. [1, 2, 3] 

Rather than training or fine-tuning models, Baseten provides the backend serving layer that turns open-source or custom models (like Llama, DeepSeek, and Gemma) into scalable, production-ready APIs. [4, 5, 6, 7] 

## Core Features and Architecture


* High-Performance Inference Engines: Uses optimized inference frameworks like TensorRT-LLM, vLLM, and SGLang alongside the proprietary Baseten Inference Stack (BIS) to maximize GPU efficiency and minimize time-to-first-token (TTFT). [3, 6, 8] 

* Multi-Cloud Capacity Management: Provisions and dynamically scales GPU resources (including high-end NVIDIA hardware like H100s and B200s) across multiple cloud providers and geographic regions. [4, 9, 10] 

* OpenAI-Compatible APIs: Allows developers to call hosted or deployed models seamlessly using standard OpenAI-compatible API endpoints. [7, 11] 

* Advanced Scaling: Features token-based autoscaling, KV-aware request routing, and active-active multi-node high availability to handle intense production workloads and traffic spikes. [8, 12] 

* Truss Integration: Uses [Truss](https://github.com/baseten-inference), an open-source model packaging framework, enabling developers to deploy complex models using simple YAML configuration files without managing raw Docker containers. [7, 9, 10] 


If you're working on a project, let me know:


* Which model you are looking to deploy or run

* Whether you need help with infrastructure scaling or API integration


I can provide specific configuration tips or examples!


[1] [https://www.baseten.co](https://www.baseten.co/solutions/llms/)

[2] [https://www.zenml.io](https://www.zenml.io/llmops-database/mission-critical-llm-inference-platform-architecture)

[3] [https://aws.amazon.com](https://aws.amazon.com/partners/success/baseten-nvidia/)

[4] [https://www.baseten.co](https://www.baseten.co/blog/mercury-2-is-now-available-on-baseten/)

[5] [https://www.youtube.com](https://www.youtube.com/watch?v=Gig51sj4cL0&t=9)

[6] [https://cloud.google.com](https://cloud.google.com/blog/products/ai-machine-learning/how-baseten-achieves-better-cost-performance-for-ai-inference)

[7] [https://docs.baseten.co](https://docs.baseten.co/examples/deploy-your-first-model)

[8] [https://docs.baseten.co](https://docs.baseten.co/engines/bis-llm/overview)

[9] [https://docs.baseten.co](https://docs.baseten.co/concepts/howbasetenworks)

[10] [https://ai.engineer](https://ai.engineer/orgs/baseten)

[11] [https://docs.baseten.co](https://docs.baseten.co/overview)

[12] [https://www.baseten.co](https://www.baseten.co/resources/guide/the-baseten-inference-stack/)



What is Pika?

is the officially recommended pure-Python client library for RabbitMQ. It is used to interact with message brokers that support the AMQP 0-9-1 protocol. [1, 2, 3]  

The package is primarily used in microservices and distributed applications to handle asynchronous communication by publishing and consuming messages through queues. [4]  

Key Features of Pika 

• Pure Python: It is written entirely in Python, making it lightweight and cross-platform. 

• Protocol Support: It implements the standard AMQP 0-9-1 protocol and supports specific RabbitMQ extensions. 

• Network Independent: It tries to stay independent of the underlying network support library. 

• Multiple Connection Adapters: It features multiple adapters to support different programming models: 


• BlockingConnection: Ideal for simple, synchronous applications. 

• SelectConnection / TornadoConnection / TwistedProtocolConnection: Asynchronous adapters meant for I/O loops and high-performance apps. [1, 5]  


• Thread-Neutral: It doesn't require threads, nor does it forbid them, allowing it to work with callbacks, greenlets, or generators. [5]  


How to Install 

You can easily add it to your project via the  pika PyPI page  using pip: [1, 3]  

Basic Example (Producer) 

Here is a quick look at how you use  to send a message to a RabbitMQ queue using a standard blocking connection: 

Would you like me to show you how to write the consumer code to read messages back from the queue, or do you need help setting up RabbitMQ? 

AI responses may include mistakes.


[1] https://pypi.org/project/pika/

[2] https://packagehub.suse.com/packages/python-pika/

[3] https://www.rabbitmq.com/tutorials/tutorial-one-python

[4] https://oneuptime.com/blog/post/2026-01-23-rabbitmq-consumers-pika-python/view

[5] https://github.com/pika/pika

[6] https://pika.readthedocs.io/




Saturday, September 19, 2026

What is crew

 The Crew is designed for people who are overwhelmed, not for people who enjoy organizing. Every design decision prioritizes minimum friction:

  • Chat is the interface: no manual file management
  • Skills handle the heavy lifting: multi-step workflows run as guided conversations
  • Agents handle the quick stuff: filing, linking, capturing, searching
  • Any language, any time: your brain shouldn't have to switch languages to stay organized
  • Conservative by default: agents never delete, always archive. They ask before making big decisions.
GitHub - gnekt/My-Brain-Is-Full-Crew: Built by a PhD whose memory was failing, whose diet was a mess, and whose anxiety had its own agenda. Most second brain tools ignore the fact that your brain doesn't work in isolation: your body and your mental health are part of the system too. This crew handles all three: knowledge, nutrition, and mental wellness. · GitHub https://github.com/gnekt/My-Brain-Is-Full-Crew

What is flocci

 Floci is a free, open-source local AWS emulator for development, testing, and CI.

It gives you AWS-shaped services on your machine without requiring a cloud account, an auth token, or paid feature gates. Point your AWS SDK, CLI, Terraform, CDK, OpenTofu, or test suite at http://localhost:4566 and keep your existing workflows.

Already using LocalStack? Floci is a drop-in replacement: swap the image and keep going. See Migrating from LocalStack.

Floci is the AWS member of the Floci emulator family, named after floccus, the cloud formation that looks like popcorn.

Friday, September 18, 2026

Picking LLM for Mac Mini

The easiest way to think about local models is by memory tier. 


Mac mini Models worth considering

16GB gpt-oss-20b, smaller Gemma 4 models

24GB gpt-oss-20b, Gemma 4 26B A4B, Qwen3.6 27B

32GB Qwen3.6 35B, Qwen3-Coder 30B, Gemma 4 26B

48GB Llama 3.3 70B, alongside smaller models

64GB Llama 3.3 70B and substantially larger local workloads

These are practical starting points rather than hard limits. Quantization, context length, KV-cache requirements, runtime overhead, and whatever else is running on the Mac all affect how comfortably a model runs. 


A model that technically fits into memory may still be unpleasant to use if there is not enough headroom. 


Wednesday, September 16, 2026

What is Vibe Security Radar ?

 


A Georgia Tech SSLab catalog of public vulnerabilities whose root cause traces to AI-written code.


https://vibesecradar.com/


We start from disclosed GHSA and CVE advisories, not from a scan of every AI commit. A finding is published only when we can show three things on the same attack path: the AI-authored change, the vulnerable behavior, and the fix that closed it. Cursor, Copilot, Claude Code, and similar tools all appear; the catalog is about the code they left behind, not a ranking of tools.


Browse the current catalog for cases and statistics. The catalog is a lower bound, not a census of every AI bug. Many AI-assisted changes never become a public advisory, and some that do leave a history we cannot recover.


How a case gets in

Match the advisory. Confirm the GHSA or CVE, the repository, the package, and the actual vulnerability — not a neighboring bug in the same project.

Find the AI change. Bind an AI authorship signal (commit trailer, co-author, agent transcript, or equivalent) to the exact commit and the hunk that matters.

Prove cause and fix. Compare the parent, the AI change, and the minimum security fix. The AI code has to affect the same mechanism the patch later closes. An AI marker on a nearby commit is not enough.

Confirm the release. Record the vulnerable and fixed versions when the advisory states them, and fold true duplicates so one GHSA is one case.

What counts: AI introduced the flaw, exposed the vulnerable path, or left a security fix incomplete.


What does not: an AI marker, git blame, or model verdict on its own. We also do not claim that AI is riskier than human code. This dataset is not a rate comparison.




What is envoy Load Balancer

 


Envoy is a high-performance, open-source Layer 7 proxy and load balancer designed for cloud-native applications. [1, 2]  

Key Load Balancing Strategies 


• Round Robin: Sends requests sequentially to all available backends. 

• Least Request: Sends requests to the backend with the fewest active requests (default policy). 

• Random: Chooses an available backend at random. 

• Consistent Hash: Routes traffic based on a hash like a client IP or header to support session affinity. 

• Zone Aware Routing: Prefers closer upstream endpoints to minimize latency and network hops. [3, 4]  


Core Features 


• Service Discovery: Dynamically discovers upstream worker nodes and endpoints. 

• Health Checking: Regularly inspects node health to automatically adjust routing weights. 

• Advanced Traffic Control: Includes built-in circuit breaking, rate limiting, and traffic shaping. 

• Dual Deployment: Functions as both an edge/ingress load balancer and a service mesh sidecar proxy. [3, 5, 6, 7, 8]  


You can read more about configuration options and setup instructions in the Envoy Proxy Architecture Overview or check out the Envoy Gateway Load Balancing Guide. [3, 9]  

If you'd like, let me know:Are you deploying Envoy as an edge proxy or a service mesh sidecar?What load balancing algorithm do you plan to use?I can help you write the appropriate configuration configuration. 

AI responses may include mistakes.


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

Wednesday, September 9, 2026

What is Perplexity Lily inference engine?

 


Perplexity Open Sources Lily: A Rust + Metal Inference Engine for Qwen3.6-35B-A3B on Apple Silicon

By Asif Razzaq -September 2, 2026

Perplexity has open sourced Lily, the local inference engine behind Hybrid Compute in Perplexity Computer. It is a single-process runtime: a Rust layer loads the checkpoint and drives the generation loop, an OpenAI-compatible chat-completions API streams tokens, and hand-written Metal kernels execute the model. Neither PyTorch nor MLX sits in the execution path. Lily is deliberately narrow with one model, Qwen3.6-35B-A3B, on one hardware family and that narrowness is the performance argument.


Is it deployable? Yes. A standalone demo is public in the pplx-garden repository. A Rust and Metal inference server offering greedy text generation through a minimal OpenAI-compatible HTTP API. The 4-bit checkpoint is 19.4 GB, so an Apple silicon Mac with 32 GB or more of unified memory is the realistic floor; Perplexity’s shipping Hybrid Compute product lists macOS 15+, 24 GB minimum and 32 GB for best results.



Why specialize at all?

The default Mac stack is MLX plus MLX-LM, which already ships a Qwen implementation with grouped expert work, a fused recurrent Metal kernel, and GQA-aware attention. But its operations must stay reusable across architectures. Lily gives that up and puts model structure, execution plans, and kernel selection in one runtime.


Three workload shapes

Qwen3.6-35B-A3B stores 35B parameters and activates roughly 3B per token. A router scores 256 experts and picks eight, alongside one shared expert that sees every token. It also mixes 10 full-attention layers using grouped-query attention (16 query heads, two KV heads) with 30 Gated DeltaNet layers. That yields three patterns: uneven expert groups, attention over a growing KV cache, and a fixed-size recurrence.


Prefill: keep weights packed, keep routing on the GPU

The checkpoint uses groupwise affine 4-bit quantization, every group of 64 weights sharing a bfloat16 scale and bias, about 70 GB of bfloat16 weights compressed to 19.4 GB. Metal 4 tensor operations consume bfloat16, so weights must be reconstructed first. Lily does that one tile at a time inside the grouped GEMM, holding results in threadgroup memory and accumulating in FP32, so the expanded array never reaches unified memory. In Perplexity’s ablation that fusion raised end-to-end prefill 77.4% at a 512-token prompt.


Keeping the routing histogram, prefix scan, scatter and block map inside a single GPU command buffer added 89% at 512 tokens by removing CPU synchronization inside each MoE layer. Moving from 16-row to 32-row tiles with four simdgroups added 13.2% at 2K; a register-resident Gated DeltaNet scan added 5.6%. Expert GEMMs are roughly 90% of prefill time. Long prompts run in bounded chunks so temporary activations do not compete with weights and cache for memory.


Decode: minimize bytes moved per token

Batch-1 decode has almost no weight reuse, so bandwidth sets the ceiling. One recorded step launched 795 kernels forming 555 sequential stages; Lily records real dependencies in a concurrent Metal pass so independent kernels overlap. The selected token is written straight into the next step’s GPU-resident input slot, removing a per-token CPU round trip, and four kernel chains are fused to keep intermediates in registers.


Coalesced cache reads lifted key bandwidth from 33.8 to 47.9 GB/s and value bandwidth from 42.0 to 61.8 GB/s. GQA packing, four query heads sharing one threadgroup so each KV row loads once, improved decode 23.8% at 32K. A fixed-block attention layout at 32K and above improved decode 7.7% at 32K, 27.4% at 64K, and 40.2% at 128K.


Results

On one 40-core, 128 GB M5 Max at batch 1, loading identical 4-bit checkpoint bytes against MLX-LM’s fastest direct-generation path across ten lengths from 256 to 128K tokens, Lily averaged 4,156 prefill tokens/s versus 3,388 (1.23x) and 170.0 decode tokens/s versus 126.4 (1.35x). At a 4K prompt and 4K context it reached 5,749.9 and 186.6 tokens/s against 4,737.5 and 140.9, and was faster at every recorded point: 1.12–1.42x prefill, 1.31–1.37x decode. A teacher-forced check across 192 positions put Lily’s perplexity 0.04% higher, with the same top-ranked token 96.35% of the time.


Tuesday, September 8, 2026

Google Proto sample file with Message and Service.

syntax = "proto3";


package library.v1;


import "google/protobuf/timestamp.proto";

import "google/protobuf/empty.proto";


option go_package = "github.com/example/library/v1;libraryv1";


// Service definition housing multiple RPC endpoints

service LibraryService {

  rpc GetBook (GetBookRequest) returns (Book);

  rpc ListBooks (google.protobuf.Empty) returns (ListBooksResponse);

  rpc CreateBook (CreateBookRequest) returns (Book);

}


// Data message definition for input requests

message GetBookRequest {

  string isbn = 1;

}


// Data message definition for book resources

message Book {

  string id = 1;

  string title = 2;

  string author = 3;

  int32 publication_year = 4;

  google.protobuf.Timestamp added_at = 5;

}


// Data message definition for creation requests

message CreateBookRequest {

  string title = 1;

  string author = 2;

  int32 publication_year = 3;

}


// Data message definition for collection responses

message ListBooksResponse {

  repeated Book books = 1;

}

What is Google Protobuf definition file?

 


A `.proto` file serves as the contract and Interface Definition Language (IDL) for gRPC, defining data structures (**messages**) and remote service endpoints (**services**) in a language-agnostic format.


**Why Proto Files Are Significant in gRPC**

Protocol buffers are the operational backbone of gRPC. Instead of relying on dynamic JSON payloads or ad-hoc REST endpoints, gRPC uses the `.proto` file to compile strongly-typed client stubs and server boilerplate code for dozens of programming languages, including Go, Java, Python, and C++. This ensures strict adherence to the API contract at compile time rather than runtime.


**Key Advantages of Using Proto Files**


* **High Performance:** Data is serialized into a compact binary format, resulting in smaller network payloads and significantly faster serialization and parsing speeds compared to text-based formats like JSON.

* **Language Agnosticism:** A service defined in a single `.proto` file can seamlessly connect a Python microservice to a Go backend or a C++ client without custom translation layers.

* **Backward and Forward Compatibility:** Because fields are identified by unique numeric tags rather than string names, you can safely add or deprecate fields without breaking legacy clients.

* **Automatic Code Generation:** Compiling tools like `protoc` eliminate manual network boilerplate writing, drastically reducing human error.


**Best Practices for Defining Proto Files**


* **Always use unique, immutable field numbers:** The numbers assigned to fields (e.g., `id = 1`) are permanent binary tags. Never change a field's number once deployed, and avoid reusing numbers of deleted fields; use the `reserved` keyword instead.

* **Optimize tag numbers 1 through 15:** Field numbers 1 through 15 take only one byte to encode. Assign your most frequently transmitted fields to these lower numbers to minimize wire size.

* **Adopt versioned package names:** Use structured naming conventions (e.g., `package demo.v1;`) to prevent naming collisions and manage breaking API changes cleanly over time.

* **Keep messages cohesive:** Avoid creating monolithic "god messages." Design granular, focused messages tailored to specific service actions to maintain clarity and reusability.

* **Leverage well-known types:** Utilize standard Google proto types (like `google.protobuf.Timestamp` or `google.protobuf.Empty`) instead of reinventing common data structures.

Monday, September 7, 2026

What is ConvertX

ConvertX is a free, open-source, self-hosted online file converter that you can deploy as a single Docker container. Developed by user C4illin on GitHub, it is designed to replace sketchy third-party file conversion websites, giving you 100% data privacy by processing all your files locally on your own server or computer. [1] (https://www.youtube.com/watch?v=3xQvxa7WGFc&t=54), [2] (https://daily.dev/posts/this-docker-container-converts-any-file-to-any-format-so-i-stopped-trusting-sketchy-websites-with-m-9ykzj06el), [3] (https://www.makeuseof.com/ditched-online-file-converters-for-a-docker-container-with-1000-formats/), [4] (https://www.youtube.com/watch?v=aqRr0cijPv0)The technical stack is built on TypeScript, Bun, and Elysia, ensuring the application is incredibly fast and lightweight. [1] (https://www.youtube.com/watch?v=0INt3gFFoEY), [2] (https://www.youtube.com/watch?v=3xQvxa7WGFc&t=54)


How It Works: "20 Engines in a Trenchcoat"Rather than writing conversion tools from scratch, ConvertX wraps over 20 well-known open-source backend conversion engines into a single unified graphical user interface (GUI). When you upload a file, ConvertX automatically passes it to the correct specialized tool: [1] (https://www.xda-developers.com/this-one-docker-container-converts-any-file-to-any-format/), [2] (https://www.makeuseof.com/ditched-online-file-converters-for-a-docker-container-with-1000-formats/), [3] (https://www.youtube.com/watch?v=3xQvxa7WGFc&t=54)🎬 FFmpeg: For high-speed audio and video conversions (e.g., MKV to MP4).🖼️ ImageMagick & GraphicsMagick: For handling complex images and vector assets.📄 LibreOffice & Pandoc: For text documents, spreadsheets, and LaTeX files.📚 Calibre: For e-book conversions.📐 Assimp: For 3D assets and modeling files.Other engines include Inkscape, libheif, Vips, XeLaTeX, Potrace, and Markitdown. [1] (https://www.makeuseof.com/ditched-online-file-converters-for-a-docker-container-with-1000-formats/), [2] (https://www.youtube.com/watch?v=3xQvxa7WGFc&t=54), [3] (https://www.youtube.com/watch?v=0INt3gFFoEY), [4] (https://daily.dev/posts/this-docker-container-converts-any-file-to-any-format-so-i-stopped-trusting-sketchy-websites-with-m-9ykzj06el), [5] (https://www.xda-developers.com/this-one-docker-container-converts-any-file-to-any-format/)Because it links all these engines together, it supports over 1,000 different format combinations


What is NextCloud Self hosting

 Nextcloud is a free, open-source Nextcloud Platform that lets you host your own personal cloud storage, file sync, and collaboration services on your own hardware or server


What is Nextcloud?Nextcloud functions similarly to commercial services like Google Drive or Dropbox, but it gives you complete control and privacy over your data. [1] (https://www.youtube.com/watch?v=jT7CUK5UNrw), [2] (https://www.digitalocean.com/community/tutorial-collections/how-to-install-and-configure-nextcloud), [3] (https://medium.com/@ayanpande/how-i-set-up-my-own-personal-cloud-with-nextcloud-ddb56bd00963)Core Features: File storage, automatic device syncing, calendar, contacts, and notes.Nextcloud Hub: Combines file sharing with online office editing, text chat, and video conferencing (Talk).Self-Hosted: Runs on a local Linux server, a Network Attached Storage (NAS) device, or a rented cloud Virtual Private Server (VPS)


How to Set It Up (Using Docker All-in-One)The easiest way to set up Nextcloud without dealing with complex web server or PHP configurations is using Docker and the official All-in-One (AIO) image


Step 1: Install DockerInstall Docker and Docker Compose on your host system (such as an Ubuntu/Debian Linux server or a compatible NAS). [1] (https://www.youtube.com/watch?v=cSpTo8b7RLs&t=17), [2] (https://nextcloud.com/home-users/)


Step 2: Run the Master ContainerStart the Nextcloud AIO master container using your terminal with a command exposing ports 8080 and 8443:


docker run -d \

  --init \

  --sig-proxy=false \

  --name nextcloud-aio-mastercontainer \

  --restart always \

  -p 8080:8080 \

  -v nextcloud_aio_mastercontainer:/mnt/docker-aio-config \

  -v /var/run/docker.sock:/var/run/docker.sock:ro \

  nextcloud/all-in-one:latest



Step 3: Access the AIO InterfaceOpen your web browser and navigate to https://your-server-ip:8080 or https://localhost:8080.Follow the on-screen setup interface to configure your domain or local address, and let it automatically pull and start the dependent containers (Apache proxy, Nextcloud app server, PostgreSQL database, and Redis cache)


tep 4: Complete the InstallationOnce the containers are running, open the Nextcloud interface on the configured port/domain.Create your admin username and secure password.Choose whether to install recommended productivity apps, then finish and access your new cloud dashboard. [1] (https://www.youtube.com/watch?v=cSpTo8b7RLs&t=17), [2] (https://github.com/nextcloud/all-in-one)


What are Causal AI Models

 Causal AI models are artificial intelligence systems designed to understand and model cause-and-effect relationships rather than just statistical correlations. [1] (https://datapoem.ai/resources/article/what-is-causal-ai)Correlation vs. CausationTraditional AI: Finds patterns and correlations (variables that move together). For example, it might notice that high ice cream sales correlate with high shark attacks. [1] (https://datapoem.ai/resources/article/what-is-causal-ai)Causal AI: Understands the underlying mechanism and determines if one variable actually causes a change in another (the heat drives ice cream and swimming, but ice cream doesn't cause shark attacks). [1] (https://datapoem.ai/resources/article/what-is-causal-ai)How Causal AI WorksCausal Discovery: Algorithms look at data patterns to find potential cause-and-effect links.Structural Causal Models (SCMs): Uses tools like Directed Acyclic Graphs (DAGs) to map dependencies.Counterfactual Reasoning: Asks "what if" scenarios to simulate hypothetical interventions and predict outcomes before they happen in the real world. [1] (https://medium.com/@alexglee/causal-ai-current-state-of-the-art-future-directions-c17ad57ff879), [2] (https://www.infobip.com/glossary/causal-ai)Key BenefitsExplainability: Clearly explains why a decision or prediction was made.Reduced Bias: Explicitly models sensitive variables to detect and mitigate hidden biases.Better Decision-Making: Helps organizations test interventions safely in simulations before real-world deployment. [1] (https://kanerika.com/blogs/causal-ai/), [2] (https://www.techtarget.com/whatis/video/An-explanation-of-causal-AI)Common ApplicationsHealthcare: Evaluating how specific treatments directly impact patient recovery.Sales & Marketing: Figuring out if an ad campaign actually drove a purchase or if the buyer would have bought the product anyway.Supply Chain: Identifying the exact root cause of a production line breakdown. [1] (https://www.techtarget.com/whatis/video/An-explanation-of-causal-AI), [2] (https://kanerika.com/blogs/causal-ai/), [3] (https://datapoem.ai/resources/article/what-is-causal-ai)If you'd like, I can share:Specific Python libraries used to build causal models (like DoWhy or Pyro)How it differs from Generative AI

How does reference_agent work in OKF documentation?

 The reference_agent is primarily an AI-powered OKF documentation/enrichment pipeline. It does not itself create the Acme Retail metrics/, computations/, policies/, skills/, and attesters/ system.


Its implemented source pipeline is currently BigQuery → LLM → OKF documents, optionally followed by a web-crawling/enrichment pass → OKF documents → regenerated indexes.


                 BigQuery Dataset

                        │

                        ▼

              ┌──────────────────┐

              │   BigQuerySource │

              └────────┬─────────┘

                       │

                 discovers concepts

                       │

                       ▼

              ┌──────────────────┐

              │ Reference Agent  │

              │    Gemini LLM    │

              └────────┬─────────┘

                       │

          ┌────────────┼────────────┐

          │            │            │

          ▼            ▼            ▼

      metadata      existing     other

      from BQ         OKF       concepts

          │            │            │

          └────────────┼────────────┘

                       ▼

                 OKF Markdown

                       │

                       ▼

                index.md files

                       │

                       ▼

                 OKF Bundle

                       │

                optional Web Pass

                       │

                       ▼

                 enriched OKF



Google's README explicitly describes the reference agent as a two-pass system:


BQ pass — generates one OKF document per source concept using BigQuery metadata.

Web pass — optionally crawls documentation starting from supplied seed URLs and enriches existing concepts or creates reference documents.


3. The first major component: BigQuerySource


This is where the process starts.


The CLI currently supports:


--source bq


and requires:


--dataset project.dataset


The CLI constructs:


BigQuerySource(

    dataset=args.dataset,

    billing_project=args.billing_project

)



The BigQuerySource uses the Google BigQuery Python client.


4. What does BigQuerySource discover?


This is important.


It doesn't simply dump the BigQuery schema.


It creates concepts.


For example:


BigQuery Dataset

        │

        ├── BigQuery Table

        ├── BigQuery Table

        ├── BigQuery Table

        └── BigQuery Table


The source creates a concept such as:


datasets/my_dataset


with:


type = BigQuery Dataset


and a canonical BigQuery resource URI.


For tables it creates concepts like:


tables/orders

tables/customers

tables/products


with:


type = BigQuery Table



5. It even handles sharded BigQuery tables


There is a nice detail in the implementation.


Suppose your dataset has:


events_20260101

events_20260102

events_20260103

...


The source recognizes these as a sharded table family rather than blindly treating every table as an independent concept.


It detects suffixes using a regex and can create a wildcard concept such as:


tables/events_


with a resource like:


.../tables/events_*


and metadata indicating that it is a wildcard/family.


That's useful because an OKF bundle shouldn't necessarily contain thousands of nearly identical documents for date-sharded tables.


6. Then the agent gets raw metadata


The LLM has a tool called:


read_concept_raw()


This retrieves structured metadata for a concept.


For a BigQuery table, that includes things such as:


schema

nested RECORD fields

partitioning

clustering

row counts

timestamps


The tool implementation explicitly describes these capabilities.


So the LLM isn't guessing the schema.


It receives actual source metadata.



7. The LLM itself is a Google ADK Agent


This is a critical architectural point.


The reference agent is not just a Python script calling Gemini once.


It uses:


from google.adk import Agent


and creates an ADK agent.


The default model is:


gemini-flash-latest


The BQ agent is:


okf_bq_reference_agent


with these tools:


list_concepts

read_concept_raw

sample_rows

read_existing_doc

write_concept_doc


So conceptually:


                  Gemini

                    │

        ┌───────────┼───────────┐

        ▼           ▼           ▼

 list_concepts  read_raw   sample_rows

        │           │           │

        └───────────┼───────────┘

                    │

                    ▼

             reason about data

                    │

                    ▼

             write_concept_doc



8. What instructions does Gemini receive?


This is where prompts/reference_instruction.md becomes very important.


The agent is explicitly instructed to follow a workflow.


For each concept:


Step 1 — Check whether an OKF document already exists

read_existing_doc(concept_id)


If it exists, the agent is supposed to refine it rather than blindly replace it.


That's a significant design choice.


Step 2 — Read the source metadata

read_concept_raw(concept_id)


This gives the LLM the actual structured information from BigQuery.


Step 3 — Optionally sample data

sample_rows(concept_id, n=3)


The agent is allowed to do this when metadata alone isn't enough.


This is particularly useful when the schema is something like:


customer_id

product_id

status

amount

created_at


The schema tells you what the fields are, but sample rows can help the model understand what they actually represent.


9. Then it looks at other concepts


The LLM calls:


list_concepts()


This gives it the other concepts available in the bundle.


Why?


Because the generated documentation can create cross-links.


For example:


orders

   │

   ├──────────────► customers

   │

   └──────────────► products


Rather than creating isolated documents:


orders.md

customers.md

products.md


the agent can create relationships between them.


The prompt specifically tells the agent to use the list of concepts to weave cross-links into its prose.


10. Then Gemini writes the OKF document


The final tool is:


write_concept_doc()


The LLM supplies:


concept_id

frontmatter

body


The tool writes the Markdown file.


The OKF document contains YAML frontmatter and Markdown body. The implementation validates that at least type exists and automatically handles metadata such as generated.


For example, the generated document can conceptually look like:


---

type: BigQuery Table

title: Orders

description: Customer orders placed through the retail platform.

resource: https://bigquery.googleapis.com/...

tags:

  - orders

  - sales

  - transactions

generated:

  by: reference_agent/gemini-...

  at: ...

sources:

  - id: bigquery

    resource: ...

    title: BigQuery metadata

---


The Orders table contains one row per customer order...


# Schema


| Field | Type | Description |

|---|---|---|

| order_id | STRING | Unique order identifier |

| customer_id | STRING | Customer identifier |

| amount | NUMERIC | Order amount |

| created_at | TIMESTAMP | Order creation time |


# Common query patterns


```sql

SELECT ...


The exact content is generated by the model, but the prompt dictates this general structure: description, `# Schema`, and `# Common query patterns`. :contentReference[oaicite:12]{index=12}


---


# 11. So what exactly is AI-generated?


This is worth emphasizing.


The BigQuery API provides:


```text

facts

─────

table name

columns

types

modes

descriptions

partitioning

clustering

row counts

timestamps


The LLM turns those facts into:


knowledge

─────────

human-readable description

semantic interpretation

field explanations

relationships

common query patterns

cross-links

tags


So:


BigQuery Metadata

       │

       ▼

   deterministic

     metadata

       │

       ▼

      Gemini

       │

       ▼

   semantic OKF

   documentation


This is essentially metadata → semantic knowledge transformation.


12. Then comes the Web Pass


This is the second major capability.


You can supply:


--web-seed https://...


or:


--web-seed-file seeds.txt


The CLI also supports:


--web-max-pages

--web-max-depth

--web-allowed-host

--web-allowed-path-prefix

--web-denied-path-substring


So you might give it:


https://developers.google.com/analytics


as a seed.


The web agent doesn't simply download the page.


It crawls selectively.


13. The web agent decides what to follow


The web ingestion prompt tells it to start with the seed URL and follow links that look useful for the existing concepts.


For example:


Seed

 │

 ▼

GA4 documentation

 │

 ├── schema

 │

 ├── dimensions

 │

 ├── metrics

 │

 ├── query examples

 │

 └── unrelated pages


The agent might decide:


schema        → follow

metrics       → follow

query examples → follow

pricing       → skip

login         → skip

marketing     → skip


The crawler has hard limits on:


number of pages

hop depth

allowed hosts

path prefixes

denied path substrings


These are explicitly passed into the web agent.


14. What does the Web Agent do with a page?


For every fetched page, it decides among three possibilities:


A. Enrich an existing concept


For example:


tables/events.md


already exists.


The documentation says:


event_name represents the GA4 event name.


The web agent can augment the existing OKF document with that information.


B. Create a new reference document


For example:


references/event_parameters.md


if the page contains useful material that doesn't naturally belong to one existing concept.


C. Skip it


If it is:


marketing

navigation

login

irrelevant


it can ignore it.


This behavior is explicitly described in the web ingestion workflow.


15. This gives you an important two-pass architecture


The whole thing is:


                 SOURCE PASS

                     │

                     ▼

                BigQuery API

                     │

                     ▼

             discover concepts

                     │

                     ▼

             raw metadata tools

                     │

                     ▼

                 Gemini

                     │

                     ▼

              OKF documents

                     │

                     │

                     ▼

              WEB ENRICHMENT

                     │

                     ▼

                seed URLs

                     │

                     ▼

              Gemini crawler

                     │

           ┌─────────┼─────────┐

           ▼         ▼         ▼

        enrich     create     skip

        concept    reference

           │         │

           └─────────┼─────────┘

                     ▼

               OKF Bundle

                     │

                     ▼

              regenerate indexes


The runner implements exactly this sequence: enrich concepts, optionally run the web pass, then regenerate index.md files.


16. What runner.py is doing


runner.py is effectively the orchestrator.


It creates:


BQ ADK Agent


and, if web seeds are supplied:


Web ADK Agent


It then creates ADK Runner instances and sessions for them.


The BQ flow is approximately:


concepts = source.list_concepts()


for concept in concepts:

    enrich_concept(concept)


run_web_pass()


regenerate_indexes()


That's essentially what enrich_all() does.


17. One particularly useful feature: enrich only one concept


The CLI supports:


--concept tables/orders


and it is repeatable.


So instead of rebuilding everything:


reference-agent enrich \

    --source bq \

    --dataset myproject.sales \

    --out ./bundle \

    --concept tables/orders


you can target a specific concept.


The runner filters the discovered concepts and raises an error if the requested concept doesn't exist.


This is useful for incremental knowledge maintenance.


18. What it does NOT do


This is probably the most important part given your previous question about the Acme Retail bundle.


The reference agent does not appear to automatically discover and create:


metrics/

computations/

policies/

skills/

attesters/


from a BigQuery dataset.


Its documented BQ workflow creates/enriches concepts such as:


datasets/

tables/


and the web pass can create:


references/


The Acme-specific operational artifacts are therefore not something you should assume the reference agent generates automatically.


This is consistent with the current repository architecture and README description of the reference agent.


19. Then what is Acme Retail doing?


This is where the distinction becomes very interesting.


You effectively have:


Reference Agent

             DATA DISCOVERY

                   │

                   ▼

             BigQuery metadata

                   │

                   ▼

             semantic enrichment

                   │

                   ▼

                OKF docs


versus the Acme bundle:


              GOVERNED BUSINESS KNOWLEDGE

                         │

       ┌─────────────────┼─────────────────┐

       ▼                 ▼                 ▼

    Metrics          Policies        Computations

       │                 │                 │

       └─────────────────┼─────────────────┘

                         ▼

                       Skills

                         │

                         ▼

                     Attesters


The latter is an application of the OKF format, not the entire function of reference_agent.


And the current OKF specification is intentionally minimal: Markdown + YAML frontmatter, with no central schema registry or required tooling.


20. The visualization is a separate function


Another important distinction:


reference_agent enrich


and


reference_agent visualize


are separate CLI operations.


The visualization command:


reference-agent visualize \

    --bundle ./my_bundle


doesn't involve Gemini.


It reads the OKF bundle and generates a self-contained:


viz.html


The CLI explicitly describes it as:


Generate a self-contained HTML graph view of an OKF bundle.


and reports the number of concepts and edges generated.


So:


                  reference_agent

                       │

          ┌────────────┴────────────┐

          │                         │

       enrich                    visualize

          │                         │

          ▼                         ▼

     Gemini + BQ              OKF bundle

     + Web                     │

          │                     ▼

          ▼                  viz.html

      OKF files

21. The most important conceptual takeaway


If you're looking at this from your RAG / Agent / Knowledge Graph perspective, I would describe reference_agent as:


An AI-powered knowledge-catalog generation pipeline that converts source-system metadata and authoritative web documentation into interconnected, provenance-aware OKF documents.


It is not primarily a RAG engine.


It is not a vector database.


It is not GraphRAG.


It is not an agent answering end-user questions.


It is essentially a knowledge preparation / knowledge engineering agent.


                 Raw Enterprise Knowledge

                         │

            ┌────────────┴────────────┐

            │                         │

       Structured source          Web docs

       (currently BQ)                │

            │                         │

            ▼                         ▼

       Source tools             Web crawler

            │                         │

            └────────────┬────────────┘

                         ▼

                       Gemini

                         │

                  semantic enrichment

                         │

                         ▼

                  ┌──────────────┐

                  │  OKF Bundle  │

                  └──────┬───────┘

                         │

              ┌──────────┼──────────┐

              ▼          ▼          ▼

             RAG       Agent      Graph UI


And this last architecture is where I think OKF becomes particularly relevant to the work you've been doing with RAG/GraphRAG/agents: instead of asking your RAG pipeline to discover enterprise semantics every time a user asks a question, you can have a separate knowledge-engineering pipeline create and maintain the semantic layer first.


Then your runtime agent consumes that layer.

Analysing OKF samples from OKF Git repository

Exactly. That difference is intentional and quite important. The common directories represent the core OKF knowledge model, while the additional metrics / computations / policies / skills / attesters directories in acme_retail demonstrate a much more operational, governed, executable knowledge system.


The Acme Retail bundle is essentially showing how OKF can move beyond "documentation of data" toward trusted business intelligence that an agent can execute and verify.


Think of the bundles in two layers

Directory Purpose Typical role

datasets/ Describes datasets What data exists?

tables/ Describes BigQuery tables What does each table contain?

references/ Relationships/cross-references How are concepts connected?

metrics/ Business definitions What exactly does "Revenue" mean?

computations/ Approved SQL How should Revenue be calculated?

policies/ Business/Finance rules What rules govern the calculation?

skills/ Agent execution instructions How should an agent perform the calculation?

attesters/ Deterministic verification How do we verify the result?


The first three tell an agent what the data is.


The Acme-specific extensions tell an agent what the business means, how to calculate it, what rules apply, how to execute it, and how to verify the result.


                 OKF Bundle

                     │

       ┌─────────────┴─────────────┐

       │                           │

 Knowledge Layer             Execution Layer

       │                           │

       ▼                           ▼

 datasets                    metrics

 tables                      computations

 references                  policies

                                  │

                                  ▼

                                skills

                                  │

                                  ▼

                              attesters



The first three tell an agent what the data is.


The Acme-specific extensions tell an agent what the business means, how to calculate it, what rules apply, how to execute it, and how to verify the result.


Why metrics is particularly interesting


Suppose Acme Retail asks:


"What was our net revenue last quarter?"


A normal RAG system might retrieve documents containing:


Net Revenue = Revenue - Discounts - Returns


and then ask the LLM to figure out what to do.


Acme's OKF approach can instead have a formal metric:


metrics/

   net_revenue.md


which establishes the business definition.


Then:


net_revenue

      │

      ▼

computation

      │

      ▼

approved SQL

      │

      ▼

BigQuery


This is a major distinction.


The LLM isn't being asked:


"Write some SQL that you think calculates net revenue."


It can be told:


"The organization has already defined and sanctioned how Net Revenue is calculated. Execute that computation."


computations is the next important piece


This is where OKF starts looking like executable knowledge.


For example, conceptually:


metrics/net_revenue.md

          │

          │ defines

          ▼

computations/net_revenue.sql

          │

          │ executes against

          ▼

tables/orders

tables/refunds

tables/discounts


The computation is sanctioned SQL, rather than dynamically generated SQL.


That gives you a much stronger governance model.


Instead of:


User

 ↓

LLM

 ↓

Generate SQL

 ↓

Database


you have:


User

 ↓

Agent

 ↓

Identify metric

 ↓

Find sanctioned computation

 ↓

Execute computation

 ↓

Verify receipt

 ↓

Answer

policies adds the business governance


This is another very interesting part.


Imagine Finance has a policy saying:


Revenue must exclude cancelled orders and recognized revenue must follow a particular accounting rule.


That policy becomes part of the knowledge bundle.


So now the chain can be:


Finance Policy

       │

       ▼

Metric Definition

       │

       ▼

Sanctioned Computation

       │

       ▼

Execution


This is much stronger than simply putting the Finance policy into a vector database and hoping the LLM retrieves it.


skills is where agents come in


This is probably the directory I'd pay the most attention to if you're looking at OKF from an Agent/RAG architecture perspective.


A skill describes how an executor should perform an operation.


Conceptually:


skills/

   calculate_net_revenue.md


could tell an agent something along the lines of:


1. Identify the requested metric.

2. Load the corresponding Attested Computation.

3. Execute against the approved data source.

4. Produce a computation receipt.

5. Pass the receipt to the attester.

6. Only return the result after verification.


So the OKF bundle isn't merely providing information.


It's providing knowledge + instructions + executable artifacts + verification.


And attesters closes the loop


This is the really interesting architecture.


Imagine the computation produces:


Result:


Net Revenue = $12,481,235


You don't necessarily want the LLM to simply say:


"The calculation looks correct."


Instead, an attester can deterministically verify the computation receipt.


So:


                   ┌───────────────┐

                   │    Metric     │

                   └───────┬───────┘

                           │

                           ▼

                   ┌───────────────┐

                   │  Computation  │

                   └───────┬───────┘

                           │

                           ▼

                     ┌───────────┐

                     │ BigQuery  │

                     └─────┬─────┘

                           │

                           ▼

                  Computation Receipt

                           │

                           ▼

                   ┌───────────────┐

                   │    Attester   │

                   └───────┬───────┘

                           │

                     ┌─────┴─────┐

                     │           │

                   VALID       INVALID

                     │

                     ▼

                   Agent

                     │

                     ▼

                  User


That's a very different philosophy from conventional RAG.


This is why Acme Retail is a particularly good example


I would categorize the repository examples roughly like this:


Basic OKF bundles

──────────────────


datasets

   +

tables

   +

references


       ↓


"Understand my data"


whereas:


Acme Retail

──────────────────────────────


datasets

tables

references

      +

metrics

computations

policies

skills

attesters


       ↓


"Understand my business,

execute approved operations,

and prove the result"


That is the part I'd explore if you're evaluating OKF seriously.


It isn't necessarily a replacement for GraphRAG, vector RAG, or a knowledge graph. Rather, it can provide a structured, governed knowledge layer on top of which those systems and agents can operate.


And the Acme Retail example is essentially the repository's demonstration of that idea: "Don't just retrieve knowledge—define what is authoritative, executable, and verifiable."