fix: pre-commit error.

This commit is contained in:
Kevin Cogan 2025-03-13 10:00:28 +00:00
parent 2c90d39a9f
commit 24b1e6832e
No known key found for this signature in database
GPG key ID: 79BDE38B5A18DE42

View file

@ -21,7 +21,7 @@
5. [API Design Overview](#api-design-overview) 5. [API Design Overview](#api-design-overview)
6. [Considerations and Tradeoffs](#6-considerations-and-tradeoffs) 6. [Considerations and Tradeoffs](#6-considerations-and-tradeoffs)
7. [Conclusion](#7-conclusion) 7. [Conclusion](#7-conclusion)
8. [Approvals](#8-approvals) 8. [Approval](#8-approval)
## Abstract ## Abstract
@ -626,30 +626,19 @@ And an example API call using cURL:
```bash ```bash
curl -X POST "http://localhost:8000/tool-runtime/rag-tool/rerank" \ curl -X POST "http://localhost:8000/tool-runtime/rag-tool/rerank" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"query": "Find relevant documents for query text.", "query": "Find relevant documents for query text.",
"retrieved_docs": [/* List of RAGDocument objects */], "retrieved_docs": [/* List of RAGDocument objects */],
"top_k": 5, "top_k": 5,
"rerank_strategy": "DEFAULT", "rerank_strategy": "DEFAULT",
"reranker_model_id": "LlamaRank", "reranker_model_id": "LlamaRank",
"rerank_config": {
"rerank_config: { "api_url": "https://api.together.xyz/v1",
"api_key": "API_KEY"
"api_url": "https://api.together.xyz/v1", }
"api_key": "API_KEY",
}
}' }'
``` ```
## API Design Overview ## API Design Overview