mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
docs add rerank
This commit is contained in:
parent
6ce8f5692e
commit
a3c88c5207
3 changed files with 8 additions and 8 deletions
|
|
@ -339,7 +339,7 @@ documents = [
|
|||
]
|
||||
|
||||
response = rerank(
|
||||
model="azure_ai/rerank-english-v3.0",
|
||||
model="azure_ai/cohere-rerank-v3.5",
|
||||
query=query,
|
||||
documents=documents,
|
||||
top_n=3,
|
||||
|
|
@ -362,9 +362,9 @@ model_list:
|
|||
litellm_params:
|
||||
model: together_ai/Salesforce/Llama-Rank-V1
|
||||
api_key: os.environ/TOGETHERAI_API_KEY
|
||||
- model_name: rerank-english-v3.0
|
||||
- model_name: cohere-rerank-v3.5
|
||||
litellm_params:
|
||||
model: azure_ai/rerank-english-v3.0
|
||||
model: azure_ai/cohere-rerank-v3.5
|
||||
api_key: os.environ/AZURE_AI_API_KEY
|
||||
api_base: os.environ/AZURE_AI_API_BASE
|
||||
```
|
||||
|
|
@ -384,7 +384,7 @@ curl http://0.0.0.0:4000/rerank \
|
|||
-H "Authorization: Bearer sk-1234" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "rerank-english-v3.0",
|
||||
"model": "cohere-rerank-v3.5",
|
||||
"query": "What is the capital of the United States?",
|
||||
"documents": [
|
||||
"Carson City is the capital city of the American state of Nevada.",
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ curl http://0.0.0.0:4000/rerank \
|
|||
|-------------|--------------------|
|
||||
| Cohere (v1 + v2 clients) | [Usage](#quick-start) |
|
||||
| Together AI| [Usage](../docs/providers/togetherai) |
|
||||
| Azure AI| [Usage](../docs/providers/azure_ai) |
|
||||
| Azure AI| [Usage](../docs/providers/azure_ai#rerank-endpoint) |
|
||||
| Jina AI| [Usage](../docs/providers/jina_ai) |
|
||||
| AWS Bedrock| [Usage](../docs/providers/bedrock#rerank-api) |
|
||||
| HuggingFace| [Usage](../docs/providers/huggingface_rerank) |
|
||||
|
|
|
|||
|
|
@ -65,11 +65,11 @@ This release brings significant performance improvements to the Python SDK with
|
|||
|
||||
#### Features
|
||||
- **[🆕 GitHub Copilot](../../docs/providers/github_copilot)** - Use GitHub Copilot API with LiteLLM - [PR](https://github.com/BerriAI/litellm/pull/12325), [Get Started](../../docs/providers/github_copilot)
|
||||
- **[🆕 VertexAI DeepSeek](../../docs/providers/vertex)** - Add support for VertexAI DeepSeek models - [PR](https://github.com/BerriAI/litellm/pull/12312), [Get Started](../../docs/providers/vertex)
|
||||
- **[🆕 VertexAI DeepSeek](../../docs/providers/vertex)** - Add support for VertexAI DeepSeek models - [PR](https://github.com/BerriAI/litellm/pull/12312), [Get Started](../../docs/providers/vertex_partner#vertexai-deepseek)
|
||||
- **[Azure AI](../../docs/providers/azure_ai)**
|
||||
- Add azure_ai cohere rerank v3.5 - [PR](https://github.com/BerriAI/litellm/pull/12283)
|
||||
- Add azure_ai cohere rerank v3.5 - [PR](https://github.com/BerriAI/litellm/pull/12283), [Get Started](../../docs/providers/azure_ai#rerank-endpoint)
|
||||
- **[Vertex AI](../../docs/providers/vertex)**
|
||||
- Add size parameter support for image generation - [PR](https://github.com/BerriAI/litellm/pull/12292)
|
||||
- Add size parameter support for image generation - [PR](https://github.com/BerriAI/litellm/pull/12292), [Get Started](../../docs/providers/vertex_image)
|
||||
- **[Custom LLM](../../docs/providers/custom_llm_server)**
|
||||
- Pass through extra_ properties on "custom" llm provider - [PR](https://github.com/BerriAI/litellm/pull/12185)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue