similarity-search-api-sdk

Stateless NMI + cosine fusion with entropy-driven alpha calibration

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
100%
命名品質
60%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(3)

  • LOWTool 'nexus_similarity_search_api_rank_items_by_nmi_cosine_fusion' name length outside 3-30 range在 nexus_similarity_search_api_rank_items_by_nmi_cosine_fusion 中
  • LOWTool 'nexus_similarity_search_api_estimate_corpus_entropy_profile' name length outside 3-30 range在 nexus_similarity_search_api_estimate_corpus_entropy_profile 中
  • LOWTool 'nexus_similarity_search_api_score_pair_nmi_cosine' name length outside 3-30 range在 nexus_similarity_search_api_score_pair_nmi_cosine 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,132Token(工具定義)
~3.0 KB典型回應大小
中等的注意力影響(128k 上下文的 0.88%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "similarity-search-api-sdk": {
      "url": "https://similarity-search-api-production.up.railway.app/mcp"
    }
  }
}

遠端端點

https://similarity-search-api-production.up.railway.app/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢nexus_similarity_search_api_rank_items_by_nmi_cosine_fusion(query_vector, corpus_vectors, top_k, alpha_override, n_bins)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query_vector": {
      "description": "Dense numeric vector representing the query item. Must have the same dimensionality as all corpus_vectors entries.",
      "items": {
        "type": "number"
      },
      "maxItems": 4096,
      "minItems": 2,
      "title": "Query Vector",
      "type": "array"
    },
    "corpus_vectors": {
      "description": "List of dense numeric vectors forming the corpus to rank against. Each inner array must match query_vector dimensionality. Maximum 500000 entries.",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "maxItems": 500000,
      "minItems": 1,
      "title": "Corpus Vectors",
      "type": "array"
    },
    "top_k": {
      "default": 10,
      "description": "Number of top-ranked results to return, ordered by descending fusion score. Capped at 1000 by the core service regardless of corpus size.",
      "maximum": 1000,
      "minimum": 1,
      "title": "Top K",
      "type": "number"
    },
    "alpha_override": {
      "default": null,
      "description": "Fixed alpha weight for cosine component in [0.0, 1.0]. If omitted, alpha is auto-calibrated from corpus entropy. Set to 1.0 to use pure cosine; 0.0 for pure NMI.",
      "maximum": 1,
      "minimum": 0,
      "title": "Alpha Override",
      "type": "number"
    },
    "n_bins": {
      "default": 16,
      "description": "Number of histogram bins used to discretize continuous dimensions when estimating NMI. Must be between 3 and 50.",
      "maximum": 50,
      "minimum": 3,
      "title": "N Bins",
      "type": "number"
    }
  },
  "required": [
    "query_vector",
    "corpus_vectors"
  ],
  "title": "rank_items_by_nmi_cosine_fusionArguments"
}
🟢nexus_similarity_search_api_estimate_corpus_entropy_profile(corpus_vectors, n_bins)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "corpus_vectors": {
      "description": "List of dense numeric vectors for which to compute the aggregate entropy and calibrated alpha. Each inner array must be the same length. Maximum 500000 entries.",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "maxItems": 500000,
      "minItems": 1,
      "title": "Corpus Vectors",
      "type": "array"
    },
    "n_bins": {
      "default": 16,
      "description": "Number of histogram bins for entropy discretization. Must be between 3 and 50; should match the n_bins used in rank_items_by_nmi_cosine_fusion for the profile to be consistent.",
      "maximum": 50,
      "minimum": 3,
      "title": "N Bins",
      "type": "number"
    }
  },
  "required": [
    "corpus_vectors"
  ],
  "title": "estimate_corpus_entropy_profileArguments"
}
🟢nexus_similarity_search_api_score_pair_nmi_cosine(vector_a, vector_b, n_bins, alpha)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "vector_a": {
      "description": "First dense numeric vector of the pair. Must have the same dimensionality as vector_b.",
      "items": {
        "type": "number"
      },
      "maxItems": 4096,
      "minItems": 2,
      "title": "Vector A",
      "type": "array"
    },
    "vector_b": {
      "description": "Second dense numeric vector of the pair. Must have the same dimensionality as vector_a.",
      "items": {
        "type": "number"
      },
      "maxItems": 4096,
      "minItems": 2,
      "title": "Vector B",
      "type": "array"
    },
    "n_bins": {
      "default": 16,
      "description": "Histogram bins for NMI discretization. Must be between 3 and 50.",
      "maximum": 50,
      "minimum": 3,
      "title": "N Bins",
      "type": "number"
    },
    "alpha": {
      "default": 0.5,
      "description": "Fixed alpha weight for the cosine component in [0.0, 1.0], applied as-is -- not auto-calibrated. Default 0.5 matches the core service default.",
      "maximum": 1,
      "minimum": 0,
      "title": "Alpha",
      "type": "number"
    }
  },
  "required": [
    "vector_a",
    "vector_b"
  ],
  "title": "score_pair_nmi_cosineArguments"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具
已驗證未記錄版本3 個工具
已驗證未記錄版本3 個工具