惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
爱范儿
爱范儿
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 叶小钗
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
博客园 - 司徒正美
博客园 - 【当耐特】
IT之家
IT之家

Hacker News: Ask HN

The New Window Delete ChatGPT Atlas Spyware Tell HN: Qwen Free Tier Is Discontinued Ask HN: SeedLegals Partnerships in London, worth it? Ask HN: How to highlight talent from untraditional backgrounds? Ask HN: We dont need a programming language now? Durable Object alarm loop: $34k in 8 days, zero users, no platform warning What if Time at the subatomic level has multiple arrows? How to add MidnightBSD Key to UEFI Secure Boot DBX? (Revoked and Forbidden Keys) Ask HN: What's your experience working at xAI as an AI tutor? Any engineers here with experience of clinical data standards? Ask HN: Who is using OpenClaw? Agent Skills for Software Test Automation Ask HN: Who needs contributors? Claude Code is thinking too much Ask HN: What Is the Big-O Order of a Jigsaw Puzzle? Ask HN: Stepping into a new role as a Senior, mentoring dos and dont's? Founder from Zurich heading to SF and Austin for the first time Hacker News No Manual Screenshots: I Built a Scalable Screenshot API Using Cloud Playwright Ask HN: Thought experiment: AGI giving us answers we don't like? Ask HN: I quit my job over weaponized robots to start my own venture 1% Vacancy, 81% Preleased: Where Midmarket Compute Deploys in 2026 Ask HN: Preferred pricing model for sound effects libraries? Copy of the email I sent to my undergraduate professors on Nov 30, 2025 Model API Performance | Hacker News Ask HN: Are open-weight LLMs the new offline encyclopedias? Valgrind 3.27 RC1 is out Claude Code OAuth down for >12 hours Ask HN: What's Better?–Tauri or Electron?
Forked CozoDB to give agents cognitive primitives
shanrizvi · 2026-06-20 · via Hacker News: Ask HN

CozoDB is an embedded relational-graph-vector database created by Ziyang Hu and the Cozo Project authors. It does Datalog, vector search (HNSW), and full-text search in a single embedded engine and was created with the vision to be the “Hippocampus for AI”. Unfortunately, the project went quiet after December 2024. KuzuDB, another embedded graph database with vector and full-text indexes similar to Cozo, was archived in October 2025.

I decided to continue the vision by using Cozo to build a memory and reasoning substrate with a cognitive ontology inspired by neuroscience. It covers events, epistemic structure, intent, and action, with multi-agent support. An extraction pipeline using an LLM of your choice to extract these from documents and session transcripts, deduplicates them, and detects cross-document contradictions. Everything is versioned and provenanced back to source chunks, with time travel.

But the features we rely on most needed work, so I hard-forked Cozo as MnesticDB under the same MPL-2.0 license, and made improvements.

I reduced index build time from 89s to 8s on a 40,000 chunk corpus with real 384-dimension embeddings without affecting recall by rebuilding the HNSW index flat-and-parallel rather than row-by-row.

I unblocked reads during index rebuilds, which would take more than an hour for a 151,000 index with 1536 dimensions; it now builds off-lock, with a 40,000 vector index building under 6 seconds with 90,000 concurrent reads in one test.

I added reciprocal-rank fusion across semantic (HNSW), keyword (BM25), and graph proximity signals at around 42ms, 4x faster than the three queries running separately.

After switching the default full-text scorer from tf-idf to Okapi BM25, fused recall improved from 0.75 to 0.954 on a 40,000 chunk corpus, on par with DuckDB’s 0.957.

MnesticDB: https://www.mnesticdb.com https://www.github.com/shuruheel/mnestic

Returning to the memory and reasoning substrate, I added support for structured data, allowing users to connect a Postgres database, draft an operational ontology from the schema, and sync rows in as typed graph nodes, with provenance and on-demand live fields, fused into the same graph extracted as the cognitive ontology. This allows an agent to query business tables and knowledge distilled from documents through one interface, with contradictions and history on both.

MindGraph: https://mindgraph.cloud/ https://www.github.com/shuruheel/mindgraph-rs

In a 60-question stratified pilot of LongMemEval, we scored 87% with zero retrieval errors, strong factual recall (100%), and strong temporal reasoning (90%). The misses clustered in preference questions (70%), which I subsequently fixed, but haven’t re-run the benchmark yet. The plan is to eventually run the full 500-question run as the confidence interval is quite wide at the current sample size.

I’ve been building this solo, which is not optimal, so if this piques your interest, please consider becoming a contributor to the MnesticDB project, or a co-founder of MindGraph (the cognitive graph substrate for agents).

Ask me anything here, or email shan@rizvi.nu.