KnowledgeClaw: Towards Agentic Knowledge Engineering via Omnimodal Hypergraphs
Organizations: Nanyang Technological University, Singapore · Nanjing University of Science and Technology · Monash University · VinUniversity
Abstract
Knowledge engineering (KE) turns raw files into a reasoning-ready knowledge base, a task now within reach of LLM agents. KE has progressed from chunk and graph retrieval-augmented generation (RAG) to memory agents, agentic KE and multimodal KE. However, a live knowledge base needs omnimodality, a closed-loop lifecycle and multi-granular application at once, yet existing systems meet at most two and no benchmark measures all three. We formalize Omnimodal Knowledge Engineering (OmniKE) and release OmniKE-Bench, six tasks with 1,829 model-free items over 3,960 real files in five modalities. We further propose KnowledgeClaw, an agentic system that builds an omnimodal typed hypergraph, keeps it current with a closed-loop lifecycle agent and routes each query to the granularity it needs. Against 30 baselines, it ranks first on all six tasks with an overall OKE of 55.9, +14.6 over the strongest baseline. Our software and data are publicly available at https://github.com/LHRLAB/KnowledgeClaw.
Figures & tables
| Method | OKE | ||||||
|---|---|---|---|---|---|---|---|
| KnowledgeClaw | 51.6 | 82.8 | 15.8 | 20.9 | 95.6 | 76.0 | 55.9 |
| MemPro | 11.4 | 78.2 | 13.5 | 8.2 | 78.8 | 69.5 | 41.3 |
| + H | 28.3 | 78.8 | 13.2 | 7.3 | 78.8 | 73.8 | 45.9 |
| + H + R | 45.2 | 81.0 | 13.5 | 7.3 | 78.8 | 75.8 | 50.7 |
| OKF | 27.2 | 68.5 | 8.8 | 17.3 | 54.4 | 67.3 | 38.5 |
| + H + R | 43.7 | 78.2 | 8.8 | 17.3 | 54.4 | 72.6 | 45.6 |
| Query ( , building). Which candidate description is the authoritative description of the video f75bfdd876eb3d22.mp4 ? The four candidates open four lectures of one MIT class by the same speaker and differ only in the topic: (A) transportation systems, (B) the grid, (C) solar, (D) a just energy transition. Gold: (D). | ||
| Method | How the video reaches the answerer, and what is retrieved | Answer |
| NaiveGeneration | No corpus: the query names only a hashed file name, which carries no topic. | (C) solar ✗ |
| StandardRAG | Text bridge of the video ( s windows) cut into -token chunks; top- by similarity to the query. | (B) grid ✗ |
| LightRAG | Entity-relation graph from the text bridge; query keywords retrieve entities, relations and their chunks. | (A) transport ✗ |
| HippoRAG 2 | Graph of triples from the text bridge; personalized PageRank from nodes matched to the query. | (A) transport ✗ |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Prompt | Used in | Input | Output | Calls | Max |
|---|---|---|---|---|---|
| C1, Eq. ( 2 ) | image, px | description, visible text | per image | 1,000 | |
| C1, Eq. ( 2 ) | audio, kHz mono | summary, timed transcript | per recording | 3,000 | |
| C1, Eq. ( 2 ) | keyframes, audio | description, transcript | per video | 3,000 | |
| C1, Eq. ( 3 ) | first chars of | JSON record | per file | 2,500 | |
| C3, Eq. ( 8 ) | query | one label | if no rule routes | 5 | |
| C3, communities | entities, propositions | report, words | per community | 400 |
| Query answer | Gold source | Metric | ||
| Construction | ||||
| PDF or image closed type inventory its entities of those types | catalogued authors, affiliations, subject terms, depicted persons; parsed floor-plan elements | set F1 | pdf 344, image 56 | |
| media file its authoritative description among candidates | catalogue record, creator description or transcript; all four candidates from one collection, each of a different subject | accuracy | image 397, audio/video 3 | |
| Application | ||||
| 2–4-hop question one catalogued value | deterministic join over catalogue records; each join condition is one hop | set F1 | image 275, pdf 125 | |
| as , but the chain joins image and PDF records (2–3 hops) | as above | set F1 | image pdf 110 | |
| Persona | text / pdf | image | audio | video |
|---|---|---|---|---|
| Healthcare | PubMed Central OA (CC BY) | CDC Public Health Image Library (PD) | PriMock57 (CC BY); Senate HELP hearings (PD) | Senate HELP hearings (PD) |
| Finance | arXiv q-fin | WC | FOMC press conferences (PD); Earnings-21/22 (CC BY-SA) | FOMC press conferences with official transcripts (PD) |
| Education | arXiv | Smithsonian Open Access (CC0) | OCW nc | OCW nc |
| Law | SCOTUS opinions (PD); DOAJ CC-BY journals | WC | SCOTUS oral arguments, official transcripts (PD) | Senate Judiciary hearings (PD) |
| Psychology | PsyArXiv, PMC | Wellcome Collection (PD/CC0/CC BY/BY-SA) | OCW 9.00 nc | OCW 9.00, captioned lectures nc |
| Politics | CRS reports with version chains (PD); World Bank OKR (CC BY) | WC | VoxPopuli, European Parliament (CC0) | White House briefings, official captions (PD) |
| Method | in | query | min | Method | in | query | min | Method | in | query | min |
|---|---|---|---|---|---|---|---|---|---|---|---|
| StandardRAG | 0.11 | 0.0004 | 3 | A-MEM | 0.88 | 0.0009 | 46 | OpenClaw | 0.37 | 0.0016 | 5 |
| RAPTOR | 0.27 | 0.0005 | 15 | Mem0 | 0.52 | 0.0006 | 36 | Graphify | 0.22 | 0.0003 | 2 |
| LightRAG | 1.10 | 0.0040 | 11 | Graphiti (Zep) | 2.14 | 0.0014 | 76 | Cognee | 0.52 | 0.0010 | 15 |
| GraphRAG | 0.89 | 0.0015 | 9 | MIRIX | 1.18 | 0.0018 | 17 | LLM Wiki | 0.78 | 0.0009 | 14 |
| HippoRAG 2 | 0.39 | 0.0010 | 18 | MemOS | 0.46 | 0.0005 | 10 | OKF | 0.76 | 0.0010 | 4 |
| KAG/OpenSPG | 1.37 | 0.0019 | 19 | MemEvolve | 0.23 | 0.0002 | 6 | Omni-SimpleMem | 0.38 | 0.0011 | 9 |
| HC | Fin | Edu | Law | Psy | Pol | Hum | Bld | Mus | Gam | |
| KnowledgeClaw | 60.9 | 64.4 | 59.2 | 46.6 | 65.2 | 28.3 | 57.3 | 47.3 | 64.5 | 65.7 |
| Best baseline | 45.5 | 45.2 | 50.7 | 38.9 | 53.6 | 23.6 | 42.4 | 37.4 | 43.4 | 45.5 |
| which | OKF | MemPro | MemPro | OKF | MemPro | MemPro | LLM Wiki | MemPro | MemPro | MemPro |
| Gain |
| Slice | Ours | Best text-bridge | Best omnimodal | w/o C1 | |
|---|---|---|---|---|---|
| 344 | 56.4 | 30.8 (OKF) | 18.8 (M 3 KG-RAG) | 35.1 | |
| image | 56 | 21.6 | 0 5.3 (MemPro) | 0 7.7 (M 3 KG-RAG) | 10.0 |
| image | 397 | 82.9 | 78.6 (MemPro) | 70.0 (Omni-SimpleMem) | 81.6 |
| 125 | 46.4 | 40.0 (MemPro) | 32.8 (MMGraphRAG) | 32.0 | |
| image+PDF | 110 | 20.9 | 17.3 (OKF) | 10.9 (Omni-SimpleMem) | 0 7.3 |
| image | 304 | 71.4 | 66.8 (MemPro) | 65.5 (Omni-SimpleMem) | 69.6 |
| HC | Fin | Edu | Law | Psy | Pol | Hum | Bld | Mus | Gam | |
| Files | 396 | 417 | 413 | 396 | 396 | 396 | 396 | 417 | 417 | 418 |
| Entities | 6,023 | 4,302 | 4,487 | 4,584 | 5,606 | 3,759 | 4,358 | 3,782 | 3,039 | 3,981 |
| Record | 2,966 | 2,779 | 2,667 | 2,967 | 2,897 | 2,913 | 2,740 | 2,632 | 2,302 | 2,399 |
| Event | 597 | 223 | 201 | 396 | 468 | 222 | 311 | 194 | 141 | 133 |
| Cross-modal | 1,319 | 373 | 325 | 1,797 | 985 | 1,273 | 1,260 | 642 | 360 | 367 |
| Joined (%) | 98.2 | 98.6 | 97.3 | 99.2 | 98.7 | 98.7 | 96.2 | 99.0 | 95.4 | 98.6 |
| Method | A | B | Sup. | Method | A | B | Sup. | Method | A | B | Sup. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| NaiveGeneration | 34.3 | 40.1 | 34.3 | HyperRAG | 27.7 | 35.8 | 27.0 | Cognee | 73.7 | 16.8 | 68.6 |
| StandardRAG | 73.0 | 30.7 | 64.2 | MemGPT/Letta | 32.8 | 35.8 | 34.3 | LLM Wiki | 73.0 | 28.5 | 70.8 |
| RAPTOR | 44.5 | 34.3 | 47.4 | A-MEM | 77.4 | 21.2 | 73.7 | OKF | 73.7 | 35.0 | 65.0 |
| LightRAG | 72.3 | 27.7 | 63.5 | Mem0 | 38.7 | 37.2 | 28.5 | Omni-SimpleMem | 75.9 | 28.5 | 70.1 |
| GraphRAG | 27.7 | 38.0 | 29.2 | Graphiti (Zep) | 81.8 | 35.8 | 61.3 | MMGraphRAG | 26.3 | 38.7 | 29.2 |
| HippoRAG 2 | 51.1 | 42.3 | 43.1 | MIRIX | 33.6 | 43.8 | 27.7 | M 3 KG-RAG | 24.1 | 41.6 | 28.5 |
| Named (%) | Tokens | Make-up of ours (%) | Score | |||||||
| Task | Ours | Flat | Ours | Flat | Card | Linked | Edge | Passage | Ours | Flat |
| 100 | 93.8 | 1,972 | 3,686 | 100 | 0 | 0 | 0 | 51.6 | 15.7 | |
| 100 | 66.5 | 248 | 2,250 | 100 | 0 | 0 | 0 | 82.8 | 34.8 | |
| 100 | 85.4 | 1,416 | 2,647 | 25.2 | 50.4 | 7.5 | 17.0 | 15.8 | 0 8.0 | |
| 100 | 23.1 | 1,986 | 4,761 | 7.8 | 61.5 | 6.8 | 24.0 | 20.9 | 0 5.5 | |
| 100 | 63.5 | 2,145 | 3,840 | 100 | 0 | 0 | 0 | 95.6 | 62.8 | |
| Ours | Flat | OKE | keep | OKE | links | OKE | OKE | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 256 | 51.2 | 20.6 | 0.80 | 16.7 | 55.9 | 0.4 | 17.6 | 56.0 | 2 | 18.2 | 56.2 | 5 | 17.1 | 56.0 |
| 512 | 55.0 | 22.0 | 0.83 | 16.9 | 55.9 | 0.5 | 17.5 | 56.0 | 4 | 16.9 | 55.9 | 10 | 16.9 | 55.9 |
| 1,024 | 55.8 | 22.4 | 0.86 | 16.9 | 55.9 | 0.6 | 16.9 | 55.9 | 6 | 16.9 | 55.9 | 15 | 17.1 | 56.0 |
| 2,048 | 55.3 | 24.8 | 0.89 | 16.7 | 55.9 | 0.7 | 19.8 | 56.3 | 8 | 16.7 | 55.9 | 20 | 16.9 | 56.0 |
| full | 55.9 | 26.7 | 0.92 | 16.3 | 55.8 | 0.8 | 19.6 | 56.3 | 10 | 16.9 | 56.0 |
| Method | OKE | ||||||
|---|---|---|---|---|---|---|---|
| KnowledgeClaw | 51.6 | 82.8 | 15.8 | 20.9 | 95.6 | 76.0 | 55.9 |
| MemPro | 11.4 | 78.2 | 13.5 | 8.2 | 78.8 | 69.5 | 41.3 |
| + H | 28.3 | 78.8 | 13.2 | 7.3 | 78.8 | 73.8 | 45.9 |
| + H + R | 45.2 | 81.0 | 13.5 | 7.3 | 78.8 | 75.8 | 50.7 |
| OKF | 27.2 | 68.5 | 8.8 | 17.3 | 54.4 | 67.3 | 38.5 |
| + H | 32.2 | 71.8 | 9.0 | 17.3 | 54.4 | 70.6 | 41.3 |
| OKE | None | Empty ans. | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | S | L | S | L | S | L | S | L | (%) | (%) |
| KnowledgeClaw | 48.4 | 51.6 | 14.0 | 15.8 | 20.0 | 20.9 | 54.6 | 55.9 | 0.5 | 8.6 |
| MemPro | 9.9 | 11.4 | 1.5 | 13.5 | 2.7 | 8.2 | 37.9 | 41.3 | 5.7 | 21.5 |
| OKF | 24.2 | 27.2 | 1.8 | 8.8 | 2.7 | 17.3 | 35.7 | 38.5 | 1.3 | 7.5 |
| LLM Wiki | 17.6 | 20.0 | 1.0 | 6.5 | 0.0 | 0.0 | 33.2 | 35.3 | 1.6 | 14.8 |
| Graphiti (Zep) | 9.2 | 10.9 | 5.5 | 12.0 | 1.8 | 5.5 | 33.1 | 35.2 | 2.1 | 24.6 |