{"adoption": {"forks": 227, "observed_at": "2026-08-28T04:06:50.581333+00:00", "stars": 2421}, "canonical_url": "https://ross.abutalabs.com/products/self-rag", "card": {"archived": false, "artifact_type": "library", "description": "This includes the original implementation of SELF-RAG: Learning to Retrieve, Generate and Critique through self-reflection by Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi.", "domain": ["large-language-models", "artificial-intelligence"], "enriched": true, "function": ["rag", "llm-inference", "machine-learning", "search-engine"], "health_score": 20, "homepage": "https://selfrag.github.io/", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["AkariAsai/self-rag"], "name": "AkariAsai/self-rag", "platform": ["python"], "pushed_at": "2024-05-25T11:19:17+00:00", "repo": "AkariAsai/self-rag", "stars": 2421, "tags": ["self-rag", "reflection-tokens", "research-code", "llama2", "vllm", "factuality", "adaptive-retrieval", "retrieval-augmented-generation", "natural-language-processing", "gpu", "linux"], "topics": [], "urls": [], "use_cases": ["run self-reflective retrieval-augmented generation with adaptive retrieval", "improve factuality of LLM outputs with reflection tokens", "reproduce the Self-RAG ICLR 2024 paper experiments", "fine-tune a language model to decide when to retrieve passages", "generate answers with citations and self-critique", "compare Self-RAG against standard RAG and ChatGPT baselines"], "what_it_is": "Original implementation of Self-RAG, a framework that trains a language model to adaptively retrieve passages on demand and critique its own generations via special reflection tokens. It includes training code, inference scripts, and pretrained 7B/13B Llama2-based models released for the ICLR 2024 paper.", "when_to_avoid": ["you need a production-ready plug-and-play RAG pipeline with connectors", "you cannot host 7B/13B models locally", "you want a maintained library with frequent updates and long-term support", "you need retrieval-augmented generation without model fine-tuning"], "when_to_choose": ["you want adaptive on-demand retrieval instead of always retrieving fixed passages", "you need controllable generation with factuality and citation critique", "you want to reproduce or extend the Self-RAG research", "you can run Llama2-scale models on GPUs with vLLM"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/self-rag", "repo": "AkariAsai/self-rag", "role": "main", "score": 27}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "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:06:50.581333+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:50.581333+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:33:02.535218+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "fbfed9eb0f2227e42a9fca946969e51d0974540c52f0cc57bc081ec6d1f3c4a7", "fetched_at": "2026-08-28T04:06:50.581333+00:00", "kind": "readme", "missing": false, "url": "https://github.com/AkariAsai/self-rag"}, {"content_hash": "ae468f23369ec1824e1f57475da6a547665b46a26698f4c174dabc9ccecefc02", "fetched_at": "2026-08-29T10:13:16.072705+00:00", "kind": "homepage", "missing": false, "url": "https://selfrag.github.io/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 75, "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": 1058, "days_push": 830, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 27, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}