mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
265 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | finetune/eval_retrieval.py | 37 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 39 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 75 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 77 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 154 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 156 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 255 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 257 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 328 | # ============================================================================= |
| MEDIUM | finetune/eval_retrieval.py | 330 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 25 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 27 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 86 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 88 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 136 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 138 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 263 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 265 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 644 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 646 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 662 | # ============================================================================= |
| MEDIUM | finetune/reward.py | 664 | # ============================================================================= |
| MEDIUM | finetune/dataset/schema.py | 31 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 33 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 78 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 80 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 114 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 116 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 138 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/dataset/schema.py | 140 | # --------------------------------------------------------------------------- |
| MEDIUM | finetune/jobs/eval_common.py | 15 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval_common.py | 17 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval_common.py | 242 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval_common.py | 244 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 81 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 83 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 308 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 310 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 362 | # ============================================================================= |
| MEDIUM | finetune/jobs/eval.py | 364 | # ============================================================================= |
| MEDIUM | src/index.ts | 223 | // ── Search ────────────────────────────────────────────────────────── |
| MEDIUM | src/index.ts | 237 | // ── Document Retrieval ────────────────────────────────────────────── |
| MEDIUM | src/index.ts | 248 | // ── Collection Management ─────────────────────────────────────────── |
| MEDIUM | src/index.ts | 265 | // ── Context Management ────────────────────────────────────────────── |
| MEDIUM | src/index.ts | 282 | // ── Indexing ──────────────────────────────────────────────────────── |
| MEDIUM | src/index.ts | 302 | // ── Index Health ──────────────────────────────────────────────────── |
| MEDIUM | src/index.ts | 310 | // ── Lifecycle ─────────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | finetune/train.py | 422 | |
| MEDIUM | finetune/train.py | 423 | |
| MEDIUM | finetune/train.py | 424 | |
| MEDIUM | finetune/train.py | 425 | |
| MEDIUM | finetune/train.py | 426 | |
| MEDIUM | finetune/train.py | 427 | |
| MEDIUM | finetune/train.py | 428 | |
| MEDIUM | finetune/train.py | 430 | |
| MEDIUM | finetune/train.py | 431 | |
| MEDIUM | finetune/train.py | 434 | |
| MEDIUM | finetune/train.py | 435 | |
| MEDIUM | finetune/train.py | 437 | |
| MEDIUM | finetune/train.py | 440 | |
| MEDIUM | finetune/train.py | 442 | |
| MEDIUM | finetune/train.py | 448 | |
| MEDIUM | finetune/train.py | 449 | |
| MEDIUM | finetune/train.py | 457 | |
| MEDIUM | finetune/train.py | 458 | |
| MEDIUM | finetune/train.py | 463 | |
| MEDIUM | finetune/train.py | 464 | |
| MEDIUM | finetune/train.py | 473 | |
| MEDIUM | finetune/train.py | 474 | |
| MEDIUM | finetune/train.py | 475 | |
| MEDIUM | finetune/train.py | 476 | |
| MEDIUM | finetune/train.py | 480 | |
| MEDIUM | finetune/train.py | 481 | |
| MEDIUM | finetune/train.py | 483 | |
| MEDIUM | finetune/train.py | 491 | |
| MEDIUM | finetune/train.py | 492 | |
| MEDIUM | finetune/train.py | 493 | |
| MEDIUM | finetune/train.py | 494 | |
| MEDIUM | finetune/train.py | 497 | |
| MEDIUM | finetune/train.py | 498 | |
| MEDIUM | finetune/train.py | 499 | |
| MEDIUM | finetune/train.py | 500 | |
| MEDIUM | finetune/train.py | 511 | |
| MEDIUM | finetune/train.py | 512 | |
| MEDIUM | finetune/train.py | 517 | |
| MEDIUM | finetune/train.py | 518 | |
| MEDIUM | finetune/train.py | 523 | |
| MEDIUM | finetune/train.py | 527 | |
| MEDIUM | finetune/train.py | 528 | |
| MEDIUM | finetune/train.py | 529 | |
| MEDIUM | finetune/train.py | 532 | |
| MEDIUM | finetune/train.py | 542 | |
| MEDIUM | finetune/train.py | 543 | |
| MEDIUM | finetune/train.py | 546 | |
| MEDIUM | finetune/train.py | 547 | |
| MEDIUM | finetune/train.py | 548 | |
| MEDIUM | finetune/train.py | 550 | |
| MEDIUM | finetune/train.py | 552 | |
| MEDIUM | finetune/train.py | 553 | |
| MEDIUM | finetune/train.py | 554 | |
| MEDIUM | finetune/train.py | 557 | |
| MEDIUM | finetune/train.py | 558 | |
| MEDIUM | finetune/train.py | 559 | |
| MEDIUM | finetune/train.py | 560 | |
| MEDIUM | finetune/train.py | 561 | |
| MEDIUM | finetune/train.py | 566 | |
| MEDIUM | finetune/train.py | 567 | |
| 17 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | migrate-schema.ts | 31 | // Step 1: Add collection column to documents |
| LOW | migrate-schema.ts | 36 | // Step 2: Populate collection names from collections table |
| LOW | migrate-schema.ts | 47 | // Step 3: Verify no NULL values |
| LOW | migrate-schema.ts | 57 | // Step 4: Create new documents table without collection_id |
| LOW | migrate-schema.ts | 76 | // Step 5: Copy data |
| LOW | migrate-schema.ts | 88 | // Step 6: Drop old table and rename new one |
| LOW | migrate-schema.ts | 94 | // Step 7: Recreate indices |
| LOW | migrate-schema.ts | 100 | // Step 8: Update FTS trigger to use collection name |
| LOW | finetune/convert_gguf.py | 117 | # Step 1: Load and merge |
| LOW | finetune/convert_gguf.py | 133 | # Step 2: Save merged model |
| LOW | finetune/convert_gguf.py | 139 | # Step 3: Setup llama.cpp |
| LOW | finetune/convert_gguf.py | 147 | # Step 4: Convert to FP16 GGUF |
| LOW | finetune/convert_gguf.py | 161 | # Step 5: Quantize |
| LOW | finetune/convert_gguf.py | 180 | # Step 6: Upload |
| LOW | src/store.ts | 3479 | // Step 1: Get vector matches from sqlite-vec (no JOINs allowed) |
| LOW | src/store.ts | 3488 | // Step 2: Get chunk info and document data |
| LOW | src/store.ts | 4517 | // Step 1: BM25 probe — strong signal skips expensive LLM expansion |
| LOW | src/store.ts | 4531 | // Step 2: Expand query (or skip if strong signal) |
| LOW | src/store.ts | 4550 | // Step 3: Route searches by query type |
| LOW | src/store.ts | 4615 | // Step 4: RRF fusion — original-query FTS and vector lists get 2x weight; |
| LOW | src/store.ts | 4624 | // Step 5: Chunk documents, pick best chunk per doc for reranking. |
| LOW | src/store.ts | 4701 | // Step 6: Rerank chunks (NOT full bodies) |
| LOW | src/store.ts | 4715 | // Step 7: Blend RRF position score with reranker score |
| LOW | src/store.ts | 4767 | // Step 8: Dedup by file (safety net — prevents duplicate output) |
| LOW | src/store.ts | 4941 | // Step 1: Run FTS for all lex searches (sync, instant) |
| LOW | src/store.ts | 4962 | // Step 2: Batch embed and run vector searches for vec/hyde |
| LOW | src/store.ts | 5005 | // Step 3: RRF fusion — first list gets 2x weight (assume caller ordered by importance) |
| LOW | src/store.ts | 5015 | // Step 4: Chunk documents, pick best chunk per doc for reranking |
| LOW | src/store.ts | 5095 | // Step 5: Rerank chunks |
| LOW | src/store.ts | 5109 | // Step 6: Blend RRF position score with reranker score |
| LOW | src/store.ts | 5160 | // Step 7: Dedup by file |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | finetune/convert_onnx.py | 294 | def write_transformers_js_config(onnx_dir: str, quantize_type: str = "q4"): |
| LOW | finetune/reward.py | 634 | def extract_query_from_prompt(prompt: str) -> str: |
| LOW | finetune/jobs/eval_common.py | 218 | def extract_query_from_prompt(prompt): |
| LOW | src/collections.ts | 269 | export function getDefaultCollectionNames(): string[] { |
| LOW | src/llm.ts | 35 | export function setNodeLlamaCppModuleForTest(module: NodeLlamaCppModule | null): void { |
| LOW | src/llm.ts | 602 | export function resolveParallelismOverride(envValue = process.env.QMD_EMBED_PARALLELISM): number | undefined { |
| LOW | src/llm.ts | 1990 | export function isDarwinMetalMitigationActive(): boolean { |
| LOW | src/llm.ts | 2009 | export function isDarwinExitGuardInstalled(): boolean { |
| LOW | src/store.ts | 275 | export function chunkDocumentWithBreakPoints( |
| LOW | src/store.ts | 415 | export function getRelativePathFromPrefix(path: string, prefix: string): string | null { |
| LOW | src/store.ts | 725 | function createSqliteVecUnavailableError(reason: string): Error { |
| LOW | src/store.ts | 779 | function rebuildFTSForCjkNormalization(db: Database): void { |
| LOW | src/store.ts | 1437 | function validatePositiveIntegerOption(name: string, value: number | undefined, fallback: number): number { |
| LOW | src/store.ts | 1461 | function isContentVectorColumnError(error: unknown): boolean { |
| LOW | src/store.ts | 1469 | function runContentVectorColumnRepairs(db: Database): void { |
| LOW | src/store.ts | 2118 | export function getHashesNeedingEmbedding(db: Database, collection?: string, model: string = DEFAULT_EMBED_MODEL): numbe |
| LOW | src/store.ts | 2152 | export async function maybeAdoptLegacyEmbeddingFingerprint(store: Store, model: string = DEFAULT_EMBED_MODEL): Promise<L |
| LOW | src/store.ts | 2488 | export function findOrMigrateLegacyDocument( |
| LOW | src/store.ts | 3146 | export function getCollectionsWithoutContext(db: Database): { name: string; pwd: string; doc_count: number }[] { |
| LOW | src/store.ts | 3178 | export function getTopLevelPathsWithoutContext(db: Database, collectionName: string): string[] { |
| LOW | src/store.ts | 3691 | function removeIncompleteEmbeddings(db: Database, expectedChunksByHash: Map<string, number>, model: string): number { |
| LOW | src/cli/qmd.ts | 262 | export async function finishSuccessfulCliCommand(options: FinishSuccessfulCliCommandOptions): Promise<void> { |
| LOW | src/cli/qmd.ts | 455 | function sanitizeDiagnosticMessage(message: string): string { |
| LOW | src/cli/qmd.ts | 1940 | function ensureModelsConfiguredForCli(): { embed: string; generate: string; rerank: string } { |
| LOW | src/cli/qmd.ts | 1966 | export function resolveGenerateModelForCli(): string { |
| LOW | src/cli/qmd.ts | 3145 | function installedSkillStubContent(): string { |
| LOW | src/cli/qmd.ts | 3332 | async function shouldCreateClaudeSymlink(linkPath: string, autoYes: boolean): Promise<boolean> { |
| LOW | src/cli/qmd.ts | 3494 | function normalizedDoctorNextSteps(steps: string[]): string[] { |
| LOW | src/cli/qmd.ts | 3537 | function formatModelDiagnosticPath(path: string): string { |
| LOW | src/cli/qmd.ts | 3541 | function findCachedModelInspection(model: string): CachedModelInspection { |
| LOW | src/cli/qmd.ts | 3574 | function collectEnvironmentOverrides(activeModels: { embed: string; generate: string; rerank: string }, configModels: Mo |
| LOW | src/cli/qmd.ts | 3643 | function checkEnvironmentOverrides(activeModels: { embed: string; generate: string; rerank: string }, configModels: Mode |
| LOW | src/cli/qmd.ts | 3727 | async function checkEmbeddingVectorSamples(db: Database, model: string, fingerprint: string, sampleSize: number = 3): Pr |
| LOW | src/cli/qmd.ts | 3811 | function linuxCudaRuntimeDiagnostic(): string | null { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | finetune/train_unsloth.py | 169 | except Exception as e: |
| LOW | finetune/train_unsloth.py | 180 | except Exception as e: |
| MEDIUM | finetune/eval_retrieval.py | 368 | print(f"Error: Golden data file not found: {args.golden}", file=sys.stderr) |
| LOW | finetune/train.py | 279 | except Exception: |
| LOW | finetune/train.py | 409 | except Exception: |
| LOW | finetune/train.py | 454 | except Exception: |
| LOW | finetune/train.py | 628 | except Exception: |
| LOW | finetune/train.py | 644 | except Exception: |
| LOW | finetune/dataset/validate_schema.py | 38 | except Exception as e: |
| MEDIUM | finetune/dataset/prepare_data.py | 111 | print(f"Error: No files found matching: {args.input}") |
| MEDIUM | finetune/dataset/prepare_data.py | 117 | print(f"Error: Input file not found: {input_path}") |
| MEDIUM | finetune/dataset/analyze_data.py | 218 | print(f"Error: Could not find dataset at {input_path}") |
| LOW | finetune/dataset/schema.py | 133 | except Exception as e: |
| LOW | finetune/dataset/schema.py | 186 | except Exception: |
| LOW | finetune/dataset/schema.py | 220 | except Exception: |
| LOW | finetune/experiments/gepa/dspy_gepa.py | 100 | except Exception: |
| MEDIUM | finetune/experiments/gepa/dspy_gepa.py | 140 | print("Error: DSPy expects provider/model format for LM strings (e.g., xai/grok-4-1-fast-reasoning).") |
| LOW | finetune/experiments/gepa/example.py | 114 | except Exception as exc: |
| LOW | finetune/experiments/gepa/score.py | 32 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | finetune/train_unsloth.py | 26 | |
| LOW | finetune/benchmark.py | 62 | |
| LOW | finetune/eval_retrieval.py | 79 | |
| LOW | finetune/eval_retrieval.py | 115 | |
| LOW | finetune/eval_retrieval.py | 332 | |
| LOW | finetune/reward.py | 90 | |
| LOW | finetune/reward.py | 140 | |
| LOW | finetune/reward.py | 267 | |
| LOW | finetune/reward.py | 408 | |
| LOW | finetune/dataset/analyze_data.py | 84 | |
| LOW | finetune/dataset/analyze_data.py | 196 | |
| LOW | finetune/dataset/schema.py | 142 | |
| LOW | finetune/experiments/gepa/generate.py | 32 | |
| LOW | finetune/jobs/eval_common.py | 42 | |
| LOW | finetune/jobs/eval_common.py | 67 | |
| LOW | finetune/jobs/eval.py | 108 | |
| LOW | finetune/jobs/eval.py | 133 | |
| LOW | finetune/jobs/eval.py | 204 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | finetune/train_unsloth.py | 14 | |
| LOW | finetune/train_unsloth.py | 67 | |
| LOW | finetune/train_unsloth.py | 111 | |
| LOW | finetune/train.py | 44 | |
| LOW | finetune/convert_onnx.py | 44 | |
| LOW | finetune/convert_onnx.py | 45 | |
| LOW | finetune/dataset/validate_schema.py | 8 | |
| LOW | finetune/dataset/score_data.py | 8 | |
| LOW | finetune/dataset/prepare_data_lfm2.py | 14 | |
| LOW | finetune/dataset/schema.py | 16 | |
| LOW | finetune/experiments/gepa/generate.py | 4 | |
| LOW | finetune/experiments/gepa/dspy_gepa.py | 4 | |
| LOW | finetune/experiments/gepa/example.py | 4 | |
| LOW | finetune/experiments/gepa/optimizer.py | 4 | |
| LOW | finetune/experiments/lfm2/sft_lfm2.py | 38 | |
| LOW | finetune/jobs/eval.py | 23 | |
| LOW | finetune/jobs/eval.py | 26 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/smoke-install.sh | 1 | #!/usr/bin/env bash |
| LOW | finetune/convert_gguf.py | 1 | #!/usr/bin/env python3 |
| LOW | finetune/train.py | 1 | # /// script |
| LOW | finetune/convert_onnx.py | 1 | #!/usr/bin/env python3 |
| LOW | finetune/experiments/lfm2/sft_lfm2.yaml | 1 | # SFT Training Config for QMD Query Expansion with LiquidAI LFM2 |
| LOW | finetune/experiments/lfm2/sft_lfm2.py | 1 | # /// script |
| LOW | finetune/experiments/grpo/grpo.py | 1 | # /// script |
| LOW | finetune/jobs/sft.py | 1 | # /// script |
| LOW | scripts/extract-changelog.sh | 1 | #!/usr/bin/env bash |
| LOW | scripts/release.sh | 1 | #!/usr/bin/env bash |
| LOW | src/llm.ts | 1961 | // `[rsets->data count] == 0` — but the keep_alive hasn't expired, so the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/store.test.ts | 2154 | const padLine = "Lorem ipsum dolor sit amet\n"; |
| LOW | test/store.test.ts | 2154 | const padLine = "Lorem ipsum dolor sit amet\n"; |
| LOW | test/store.test.ts | 2168 | const padding = "Lorem ipsum dolor sit amet\n".repeat(200); |
| LOW | test/store.test.ts | 2168 | const padding = "Lorem ipsum dolor sit amet\n".repeat(200); |
| LOW | test/mcp.test.ts | 167 | body: "# Large Document\n\n" + "Lorem ipsum ".repeat(2000), // ~24KB |
| LOW | test/ast-chunking.test.ts | 116 | sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`); |
| LOW | test/ast-chunking.test.ts | 116 | sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | finetune/train.py | 419 | print(" cd finetune && uv run python experiments/grpo/grpo.py") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | example-index.yml | 4 | # This file defines all collections and their contexts. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/smoke-install.sh | 6 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | finetune/train.py | 266 | # Check if output looks like a HF Hub path (contains /) |