Spaces:
Running
Running
Commit History
16 days ago
-
build(sidecar): pin af3a5f5, full abstracts and author search, papers to 6 Nov
siddhm11 +1: Claude Opus 5.51,987,085 papers (newest 2026-11-06), full abstracts for 1,439,872 of the 1,440,395 cut at 500 characters, authors in the keyword index. Hosted file verified against the build: 5,712,396,288 bytes, sha256 5e8aadf0...dbde2. Logged in the doc 06 changelog (2026-11-07); CLAUDE.md's sidecar facts updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>99c5c46
30 days ago
-
data: ship the sidecar with October's papers, the re-harvest and fresh citations (0d1449d)
siddhm11 +1: Claude Opus 5.5Keyword search and the starter feed read the sidecar baked into the image, which still held 1,853,777 papers ending 2026-09-29. The new one holds 1,972,571, exactly Turso's: the 26,918 papers the daily job stored since, and the 91,876 re-harvested for June 2025 - September 2026, with citation counts refreshed for every paper since June 2025 (373,718 found on Semantic Scholar). Checked before pinning: SQLite quick_check and the FTS5 integrity check pass, FTS rows = papers = 1,972,571, every paper has its category rows, and keyword search finds "Kimi K3" and "Looped World Models". The published file's size (3,261,734,912 bytes) and SHA-256 match the built one, and its link serves it in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ff196f8
-
fix(docker): shrink the image so the HF builder can push it
siddhm11 +1: Claude Opus 5.5Every Space build since ed6d895 (and a rebuild of the unchanged b2aea4b tree) finished all steps and was then OOM-killed while pushing the image (exit 137). The image carried two avoidable copies: * `chmod -R 777 /app` rewrote the metadata of every file under /app, so its layer re-copied the 2.8 GB sidecar and all model weights. /app is now owned by uid 1000 from the start, downloads run as that user, and the code is copied with --chown; no recursive chmod. * BGE-M3's onnx/ export (2.3 GB) and the rerankers' ONNX/OpenVINO exports (371 MB for mxbai) were downloaded but never loaded. Build steps now only download (snapshot_download at the pinned revisions); the app loads the models at startup. Roughly 16 GB of image becomes ~7 GB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fe5373a -
feat(search): mxbai-rerank-xsmall reranker, faster word match, pinned models
siddhm11 +1: Claude Opus 5.5Search, per doc 06 changelog 2026-10-14 and its 2026-10-15 correction: * Reranker: mixedbread-ai/mxbai-rerank-xsmall-v1 at 256 tokens replaces ms-marco-MiniLM-L-6-v2. predict() uses an Identity activation so the pipeline gets logits; mxbai's built-in sigmoid plus ours had let the title/citation boosts swamp it. On 847 known-item queries scored on the ~500-char abstracts production serves: MRR@10 0.523 -> 0.563 (+7.7%, 95% CI +4% to +11%). Depth stays 10; SEARCH_RERANK_TOP_N_IDLE (default 10) can deepen it when nothing else waits, worth it only after the abstract backfill (0.618 at depth 20 on full abstracts). * Word match drops 96 filler words and gives up after SEARCH_FTS_BUDGET_MS (1.5 s): same quality, 61% less CPU, no more 20 s searches from the any-word fallback. * Retrieval for the original query starts as soon as it is encoded instead of after the Groq rewrite; only the rewrite's own lists wait for Groq. Server: * app/compute_pool.py: model inference on it…8df68eb
-
data: ship the sidecar with Aug-Sep 2026 papers and refreshed citations (7585841)
siddhm11 +1: Claude Opus 5.5Dataset commit 7585841: 1,853,777 papers (was 1,799,348), newest 2026-09-29, built from the deployed 015c096 by append_to_sidecar.py (54,429 papers, 94,308 category rows, FTS5 rows) and refresh_citations.py apply-sidecar (1,843,907 papers, 99.47% found on Semantic Scholar). Checked before pinning: quick_check and FTS5 integrity-check pass, paper count equals Turso's, sidecar rows identical to Turso for sampled new papers, keyword search finds a September paper at rank 1 (fused search rank 1, was 16), the six-interest starter pool holds 51 Aug-Sep papers all with citations, a fresh copy opens read-only with the app's driver, and the uploaded sha256 (7b52450f...) equals the built file. CLAUDE.md shard/sidecar figures and CURRENT-STATE (freshness, citations) updated to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>4e2a028 -
data: ship the sidecar with refreshed citation counts (015c096)
siddhm11 +1: Claude Opus 5.5Dataset commit 015c096 is d241ff1 with scripts/refresh_citations.py apply-sidecar: 242,318 papers updated, every paper since 2025-06 among them (all were 0). Verified before pinning: quick_check ok, 1,799,348 papers, FTS5 answers queries, uploaded sha256 equals the built file, and the public resolve URL serves 2,732,003,328 bytes. For the six-interest starter pool this moves 2026 papers from 0 of 200 to 93, and every recent-lane paper now has a citation signal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>bb8441e
-
build(docker): install the image's dependencies from the lock
siddhm11 +1: Claude Opus 5.5Both pip steps now take -c constraints.txt. The torch step keeps PyPI as the primary index and adds the PyTorch CPU index as an extra: the lock pins torch==2.14.0+cpu, which only that index carries, so the CPU build is still selected, while torch's own pinned dependencies (filelock, sympy, ...) come from PyPI. With --index-url alone that step was unresolvable. Checked with pip's resolver for linux_x86_64 / CPython 3.12: the torch step resolves torch 2.14.0+cpu with no CUDA packages, and every wheel-based locked package resolves together. FlagEmbedding 1.2.10 ships only as source and builds as it does today. A test keeps both install steps on the lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>80e28ca
-
Replace the Zilliz sparse arm with local FTS5 over the sidecar
siddhm11 +1: Claude Opus 5Dense retrieval now covers 1.8M papers, but Zilliz indexes only the 1.6M snapshot, and RRF sums 1/(k+rank) per list. A paper present in one list and absent from the other collects half the score of a paper in both: at k=60 a new paper ranked #1 by dense loses to any old paper above rank 62 in both lists, and fetch_k is 60. Every paper published after 2025-05 was effectively invisible. Measured over 20 real queries, counting papers newer than the snapshot in the final top-10: sparse covers the old corpus only 0 sparse covers all 1.8M (FTS5) 8 Dense retrieval had been surfacing 3-21 new papers per query in its top 60 all along; fusion discarded them. Indexing the same corpus in both arms removes the asymmetry by construction instead of correcting for it afterwards. Secondary wins: sparse search goes from a ~600 ms network round trip to single-digit ms, and a paid dependency goes away. The index is external-content FTS5, so it stores no second copy of the text — +0.68 …c2cf123
-
Pin the metadata sidecar to a dataset commit
siddhm11 +1: Claude Opus 5The URL pointed at `main`, so the RUN layer that downloads it never changed and Docker reused the cached copy — a rebuild silently shipped stale metadata. Pinning the SHA makes the build reproducible and makes publishing a new sidecar invalidate the layer on its own. daf2ecc carries 1,799,348 papers, adding everything published after 2025-05. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EaAjzWyLaJgtGNcxYToJGEbd6b4d6
-
perf: local metadata sidecar + fine-grained categories
siddhm11 +1: Claude Opus 5Profiled the live Space on a warm, idle container (4 novel queries): Qdrant+Zilliz 1803-2891 ms <- dominant Turso metadata 1100-1270 ms BGE-M3 encode 285-642 ms Groq rewrite 161-329 ms cross-encoder 139-182 ms rerank compute 1 ms One run happened not to reorder during title-boost, so the old buggy pop succeeded and printed the true split (Turso 1132ms / compute 1ms), confirming the mislabelling fixed in the previous commit. Metadata sidecar ---------------- Turso has a single index (arxiv_id). Point lookups are fine; everything else is a full scan of 1.6M rows -- MIN/MAX(update_date) does not complete within 100s, and trending is LIKE '%code%' plus a temp B-tree sort, which the code comments put at ~15s cold. That query runs during onboarding, so the slowest path in the app is the one brand-new users hit first. app/local_meta.py mirrors the table into a local SQLite shipped in the image, carrying the indexes Turso lacks, and sits betwe…78bab6f
-
fix: BGE-M3 and cross-encoder failing to load on HF Spaces
siddhm11Root cause: Dockerfile used USER 1000 without creating a passwd entry, so getpwuid(1000) failed when BGE-M3 tried to resolve ~/.cache for HuggingFace model downloads. This meant NO vector search was happening — all searches fell back to the arXiv API keyword fallback. Fixes: - Add useradd for uid 1000 so getpwuid() resolves correctly - Set HF_HOME/TRANSFORMERS_CACHE to shared /app/.cache paths - Pre-download MiniLM cross-encoder during docker build (was missing) - Strip whitespace from all credential env vars (HF Secrets can inject trailing newlines when pasting, causing Qdrant 'Illegal header' errors) - Set HOME=/home/user for the non-root runtime user077ba39
-
Fix SQLite permissions: writable dir + /tmp DB path for non-root user
siddhm11c450206 -
Phase 3 complete: Hybrid Semantic Search pipeline
siddhm11- BGE-M3 encoding (dense + sparse) via embed_svc.py - Qdrant dense search + Zilliz sparse search (parallel) - Groq LLM query rewriter with academic heuristic bypass - RRF fusion (K=60) + recency reranking (0.80/0.20) - Graceful degradation: each service can fail independently - arXiv API fallback when hybrid search returns nothing - Dockerfile for HF Spaces deployment (Docker SDK, port 7860) - 123 tests passing (88 original + 35 new, zero regressions) - All secrets via env vars only (.env.example provided)d5a6f3e