docs base rerank config

This commit is contained in:
Ishaan Jaff 2024-12-19 18:33:32 -08:00
parent 8f8499908c
commit db4cde9d9c

View file

@ -4,7 +4,7 @@ LiteLLM **follows the Cohere Rerank API format** for all rerank providers. Here'
## 1. Create a transformation.py file
Create a config class named `<Provider><Endpoint>Config` that inherits from `BaseRerankConfig`:
Create a config class named `<Provider><Endpoint>Config` that inherits from [`BaseRerankConfig`](https://github.com/BerriAI/litellm/blob/main/litellm/llms/base_llm/rerank/transformation.py):
```python
from litellm.types.rerank import OptionalRerankParams, RerankRequest, RerankResponse