Skip to main content

LlamaIndex Postprocessor Integration: SiliconFLow Rerank

1. Product Introduction

SiliconCloud provides cost-effective GenAI services based on an excellent open-source foundation model. introduction: https://docs.siliconflow.cn/introduction

2. Product features

  • As a one-stop cloud service platform that integrates top large models, SiliconCloud is committed to providing developers with faster, cheaper, more comprehensive, and smoother model APIs.

    • SiliconCloud has been listed on Qwen2.5-72B, DeepSeek-V2.5, Qwen2, InternLM2.5-20B-Chat, BCE, BGE, SenseVoice-Small, Llama-3.1, FLUX.1, DeepSeek-Coder-V2, SD3 Medium, GLM-4-9B-Chat, A variety of open-source large language models, image generation models, code generation models, vector and reordering models, and multimodal large models, including InstantID.

    • Among them, Qwen 2.5 (7B), Llama 3.1 (8B) and other large model APIs are free to use, so that developers and product managers do not need to worry about the computing power costs caused by the R&D stage and large-scale promotion, and realize "token freedom".

  • Provide out-of-the-box large model inference acceleration services to bring a more efficient user experience to your GenAI applications.

3. Usage

import os
from llama_index.postprocessor.siliconflow_rerank import SiliconFlowRerank

reranker = SiliconFlowRerank(
    model="BAAI/bge-reranker-v2-m3",
    api_key=os.getenv("SILICONFLOW_API_KEY"),
    top_n=4,
)

nodes = [
    ...
]

response = reranker.postprocess_nodes(nodes=nodes, query_str="...")
print(response)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_postprocessor_siliconflow_rerank-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_postprocessor_siliconflow_rerank-0.5.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_postprocessor_siliconflow_rerank-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3f1a149926fbac8ad4b8a4dce13fc7faaf91567e3b9391b320b1111367b1d809
MD5 41fa9ad93698a4b9d38d6a84197004c1
BLAKE2b-256 44fdb5b32603da48e6531d25d7920cf3ef730a4462f381cbd66bfef3d1cbb60d

See more details on using hashes here.

File details

Details for the file llama_index_postprocessor_siliconflow_rerank-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_postprocessor_siliconflow_rerank-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_postprocessor_siliconflow_rerank-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2487bebed176067cd507429baf3de22d01b458265d310550f20ed2de9e68a01a
MD5 5a547b05dd22e43bcc3a6341ef4ca8b5
BLAKE2b-256 d595a641ec99fca28a30b02f7a0ade0a5e2291fb636bf0d40903a22700e7ff84

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page