Practical · Chinese/Bilingual KB Indexer · MRR@5 & Recall Evaluation

BGE Small ZH v1.5: Chinese KB Semantic Search Indexer

Upload multiple .txt, .md, .csv (RFC 4180 ragged-safe), or .json files, index passages sequentially off the main thread with mid-batch Cancel, evaluate live MRR@5 / nDCG@5 / Recall@1, and export OWASP formula-safe CSV, JSON, or Markdown.

1. Knowledge Base Queue & Multi-File Upload

Batch queue: Check passages to include, drop or upload multiple .txt / .md / .csv / .json files, or paste text anywhere.

    idle

    2. Ad-hoc Semantic Search & Benchmark Evaluation (MRR@5 / nDCG@5)

    Ad-hoc query leaderboard

    Ranked search results for the active ad-hoc KB query
    Rank Document Tokens Cosine
    Index the selected passages above to run semantic search.

    Benchmark query evaluation

    Benchmark query MRR@5 and nDCG@5 evaluation results
    Query Expected Top-1 Hit MRR@5 nDCG@5
    Preset benchmark metrics appear once indexing completes.

    3. 512-d Client Vector Storage Estimator

    Storage footprint for 512-d vectors across precision formats
    Vector format Bytes / vector Compression Total footprint

    Show the code

    Show the code: batch MRR@5, nDCG@5, and Top-1 Recall evaluation (bge-zh-core.mjs)
    Show the code: RFC 4180 ragged-safe CSV parser (bge-zh-core.mjs)
    Show the code: OWASP spreadsheet formula-injection CSV escaper (bge-zh-core.mjs)