Instructions to use anckursingh/aikoql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anckursingh/aikoql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="anckursingh/aikoql")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("anckursingh/aikoql") model = AutoModelForTokenClassification.from_pretrained("anckursingh/aikoql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
aikoql entity tagger (v0)
A small DistilBERT token classifier with one entity class, "any named entity" (labels: outside, begin, inside). It is the
entity model for AIKOQL's memory_search: each memory is tagged with the entities
it mentions when it is stored, and a search can follow an entity two memories share to a second memory that the question's
own words do not reach.
Install and use: aikoql model install anckursingh/aikoql, then start the server (--entity-model none turns it off).
It runs locally on the CPU in Rust (candle); no text leaves the machine. About 22 ms per passage.
How it was made
Fine-tuned from distilbert-base-cased for 3 epochs on the entity lists an LLM (DeepSeek) wrote for 4,896 paragraphs of
HotpotQA's distractor setting (Wikipedia text; questions 0-499 of a seeded shuffle of the validation split). Teacher entities
that do not occur literally in the text were dropped from the labels. v0 is trained on that one source only.
What was measured
Retrieval, not tagging accuracy: no CoNLL or OntoNotes score was computed. Through AIKOQL on HippoRAG's three multi-hop test sets (1,000 questions each), passage recall@10 with entity linking against the reranker alone is 95.2% against 92.2% on HotpotQA, 89.5% against 73.1% on 2WikiMultiHopQA and 68.8% against 63.8% on MuSiQue (paired p < 0.0001 on each), with the top two almost unchanged. On LongMemEval-S (120 questions) it made no significant difference (all-evidence-in-top-5 89.2% against 92.5% for the reranker alone, 2 questions better and 6 worse, p = 0.29), and with a fixed reader its better recall did not become significantly better answers (F1 57.9 against 57.4, 95% interval -0.5 to +1.4, over 3,000 questions). HippoRAG's own LLM extractions (GPT-4o-mini, Llama-3.3-70B) scored within 0.2 points of this tagger on MuSiQue recall@5. Full tables: docs/HIPPORAG-COMPARISON.md and benchmarks/results/ in the AIKOQL repository (github.com/anckursingh/aikoql).
Limits
- English, mostly Wikipedia-style text. Informal or code-heavy text is not evaluated beyond the LongMemEval check.
- A passage is read in pieces of about 1,000 characters (at most 24 pieces).
- Entities are what the teacher LLM called an entity; it can miss rare ones and tag generic phrases.
- The training labels were produced by DeepSeek from HotpotQA text (CC BY-SA 4.0); the base model is Apache-2.0. These weights are released under Apache-2.0 by the AIKOQL owner, who chose that licence; the sources above are named so a downstream user can judge them for themselves.
- Downloads last month
- 59
Model tree for anckursingh/aikoql
Base model
distilbert/distilbert-base-cased