{"adoption": {"forks": 224, "observed_at": "2026-08-28T04:04:59.766484+00:00", "stars": 1535}, "canonical_url": "https://ross.abutalabs.com/products/cag", "card": {"archived": false, "artifact_type": "library", "description": "Cache-Augmented Generation: A Simple, Efficient Alternative to RAG", "domain": ["large-language-models", "artificial-intelligence"], "enriched": true, "function": ["rag", "llm-inference", "caching", "machine-learning"], "health_score": 34, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["hhhuang/CAG"], "name": "hhhuang/CAG", "platform": ["python"], "pushed_at": "2025-05-26T21:00:42+00:00", "repo": "hhhuang/CAG", "stars": 1535, "tags": ["cache-augmented-generation", "kv-cache", "retrieval-free", "llm", "research-paper", "retrieval-augmented-generation", "natural-language-processing"], "topics": ["cag", "llm", "rag"], "urls": [], "use_cases": ["avoid retrieval latency when answering questions over a small knowledge base", "replace RAG pipeline with preloaded context and KV-cache", "run question answering experiments on SQuAD and HotpotQA", "benchmark LLM performance vs context length", "reduce retrieval errors in LLM applications"], "what_it_is": "Cache-Augmented Generation (CAG) is a Python implementation of a retrieval-free alternative to RAG that preloads knowledge into an LLM's context and caches the KV-cache for direct inference. It accompanies an ACM Web Conference 2025 short paper and includes experiment scripts comparing CAG against traditional RAG.", "when_to_avoid": ["your knowledge base is too large for the context window", "you need frequently updated knowledge without re-caching", "you require a production-ready retrieval system"], "when_to_choose": ["your knowledge source fits within the LLM context window", "you want lower latency and simpler architecture than RAG", "you are researching retrieval-free generation approaches"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/cag", "repo": "hhhuang/CAG", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:59.766484+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:31:09.281585+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f2bfc6b3992595e2c419be7a04c610f83b36c585539bfef2d618fd881d955c6", "fetched_at": "2026-08-28T04:04:59.766484+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hhhuang/CAG"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 23, "longevity": 45, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 630, "days_push": 464, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}