* local question answering over analysis notebooks with LightRAG, Neo4j, Qdrant and Ollama * RAGAS evaluation with a generator x judge comparison matrix, fully local * docs in README and OKF
4.3 KiB
4.3 KiB
type, purpose, answers, cites
| type | purpose | answers | cites | |||
|---|---|---|---|---|---|---|
| Learnings | Keep debunked beliefs about running askme's stack, GPU and LightRAG runtime. |
|
|
askme — learnings: operations
- Believed:
just downis safe any time. True: stopping mid-ingest corrupts LightRAG's JSON KV files (JSONDecodeErroron next boot). Wait for ingest or drain withjust process-pendingfirst; recovery isjust clean-stores+ re-ingest. Source: 2026-06 ingest. - Believed:
docker compose restartpicks up env changes. True: it does not — usejust down && just up. Source: 2026-06 ingest tuning. - Believed:
nvidia-smiworking in a container means CUDA works there. True: with the legacydriver: nvidiahook on driver 610,cuInitfailed with 999 whilenvidia-smiworked; Ollama silently ran on CPU. CDI (nvidia-ctk cdi generate) fixed it. Source: commitfix(ollama): pass the GPU via CDI, 2026-11-03. - Believed:
OLLAMA_KEEP_ALIVE=-1is needed to keep ingest fast. True: it pins the model on the GPU forever and blocks other GPU servers;5mstays warm across ingest calls. Source: commitfeat(ollama): release the GPU when idle, 2026-11-02. - Believed: LightRAG's caches are safe when comparing models.
True: cache keys ignore the model, so a second generator would get
the first one's cached answers and keywords.
create_rag(cache=False)for comparisons. Source:lightrag/operate.pycompute_args_hash. - Believed:
settings.chunk_overlapwas applied. True: it was dead config until passed to LightRAG; the 4000-char embed cap also dropped chunk tails silently (now logged). Source: 2026-06-17 review. - Believed: LightRAG takes storage URLs from askme's settings.
True: its Neo4j/Qdrant backends read
QDRANT_URL,NEO4J_URIetc. straight fromos.environand refuse to start without them; a host process (outside compose) must export them —just eval-comparedoes. Source:lightrag/utils.pycheck_storage_env_vars, 2026-11-03. - Believed: the askme container can reach a llama.cpp router on the
host. True: the router binds
127.0.0.1:8080, which the container's localhost does not reach; eval-compare therefore runs on the host, where Ollama, Neo4j, Qdrant and the router are all on localhost. Source:templates/llama-router.servicein llm-config, 2026-11-02. - Believed: host processes can write to
data/. True: the container runs as root, so everything it writes under the bind-mounteddata/is root-owned;sudo chown -R $USER: data/rag_storageafter an in-container ingest. Source:askme_meta.jsonwrite, 2026-11-02. - Believed:
pkill -f askme-eval-comparestops only the eval. True: the pattern also matches the shell running pkill and kills it; match the interpreter:pkill -f "python.*askme-eval-compare". Source: 2026-11-03 session. - Believed:
just eval-compare n=20setsn. True: just recipe arguments are positional;n=20became the first parameter's value. Pass values in order (just eval-compare 20). Source:just --dry-run, 2026-11-02. - Believed: normal queries (
just query, the API) answer from the whole retrieved context. True:rag.pyset Ollama'snum_ctxto 4096 while LightRAG builds prompts up to 30000 tokens; Ollama cut the rest silently. Now every query path caps the prompt at 12000 tokens (entities 2000, relations 3000, rest for chunks) andnum_ctxis 16384. Query-time only — the stores were not re-ingested. The 2026-06 eval-local numbers came through the old path. Source:src/askme/rag.pymake_query_param, 2026-11-03. Open: whether ingest-time entity extraction was truncated too (its log is gone). - Believed: the ingested graph holds domain knowledge (genes, cell
types, methods). True: 33% of 22,144 entities are
UNKNOWN, genes are 1.2%, the best-connected nodes areadataand plotting calls, and some entities are copied from LightRAG's extraction examples (Tokyo2023World…) — signs of lost instructions (truncated prompt) or a too-small model. Code-heavy notebooks also yield variable names as entities. Source: Cypher entity-type count and random sample, 2026-11-03.