io.github.nexus-mcp-infra/similarity-search-api-sdk

similarity-search-api-sdk

Stateless NMI + cosine fusion with entropy-driven alpha calibration

1.0.0
Version
remote
Transport
3
Tools

Security review

Review passed

Reviewed Jan 1, 2000.

  • tools: 3 tools scanned
  • metadata: scanned

No findings.

Tools (3)

  • nexus_similarity_search_api_rank_items_by_nmi_cosine_fusion

    Ranks a corpus of items against a query vector using a calibrated fusion score (alpha * cosine + (1-alpha) * NMI_normalizado), where alpha is auto-derived from the corpus's marginal entropy unless overridden. Results are identified by their 0-indexed position in corpus_vectors (this tool does not accept explicit item IDs). Use this when you need semantically-calibrated similarity over a stateless corpus of up to 500k items without a vector database. Do NOT use for purely geometric nearest-neighbor search where NMI overhead is unnecessary, nor for corpora larger than 500k items per call. Requires an x402 payment.

  • nexus_similarity_search_api_estimate_corpus_entropy_profile

    Computes the aggregate entropy-calibrated alpha for a corpus without running a full search -- useful to inspect before committing to a large rank_items_by_nmi_cosine_fusion call. Returns a single aggregate corpus_entropy value, NOT a per-dimension breakdown -- the real logic only exposes the mean marginal entropy across dimensions, not H(X_d) per individual dimension. Do NOT use expecting per-dimension granularity. Requires an x402 payment.

  • nexus_similarity_search_api_score_pair_nmi_cosine

    Computes the NMI-cosine fusion score for exactly one (query, target) vector pair at a fixed alpha. Use for explainability, debugging, or unit-level validation of fusion scores before running full corpus ranking. Unlike corpus-level ranking, alpha is NOT auto-calibrated for a single pair -- the real logic requires a fixed alpha (default 0.5); pass alpha explicitly for a specific blend. Do NOT use in a loop to score many pairs; batch them into rank_items_by_nmi_cosine_fusion instead. Requires an x402 payment.