SiliconFlow icon

SiliconFlow

调用 SiliconFlow(硅基流动)AI 能力:Chat Completion / Embedding / Image / Rerank

Actions4

Rerank → Rerank Documents

AI-generated

Summary

Reranks a list of documents against a query using a SiliconFlow rerank model. Sends the request to the /rerank endpoint and returns the API response for each input item.

Inputs

  • Model (required) — Rerank model ID; defaults to BAAI/bge-reranker-v2-m3.
  • Query (required) — The query used to score and order the documents.
  • Documents (required) — A JSON array of document strings or objects such as [{"text":"…"}]. Supports expressions to use upstream data.
  • Top N — Maximum number of highest-ranked documents to return; defaults to 5.
  • Return Documents — Whether to include original document content in the response; defaults to true.
  • Max Chunks Per Doc — Maximum chunks per document; defaults to 0, meaning no chunking. Sent only when set as a number.
  • Overlap Tokens — Chunk overlap token count; defaults to 80. Sent only when set as a number.

Output shape

The SiliconFlow API response, wrapped as n8n JSON output for each input item.

Requires SiliconFlow API credentials. Documents must resolve to a JSON array or an array value; invalid JSON or other types raise an error. With Continue On Fail enabled, errors are returned as { "error": "…" } for the corresponding item.

Links

Discussion