mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-10 04:08:31 +00:00
fix: pre-commit error.
This commit is contained in:
parent
2c90d39a9f
commit
24b1e6832e
1 changed files with 6 additions and 17 deletions
|
@ -21,7 +21,7 @@
|
|||
5. [API Design Overview](#api-design-overview)
|
||||
6. [Considerations and Tradeoffs](#6-considerations-and-tradeoffs)
|
||||
7. [Conclusion](#7-conclusion)
|
||||
8. [Approvals](#8-approvals)
|
||||
8. [Approval](#8-approval)
|
||||
|
||||
## Abstract
|
||||
|
||||
|
@ -626,30 +626,19 @@ And an example API call using cURL:
|
|||
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/tool-runtime/rag-tool/rerank" \
|
||||
|
||||
-H "Content-Type: application/json" \
|
||||
|
||||
-d '{
|
||||
|
||||
"query": "Find relevant documents for query text.",
|
||||
|
||||
"retrieved_docs": [/* List of RAGDocument objects */],
|
||||
|
||||
"top_k": 5,
|
||||
|
||||
"rerank_strategy": "DEFAULT",
|
||||
|
||||
"reranker_model_id": "LlamaRank",
|
||||
|
||||
"rerank_config: {
|
||||
|
||||
"api_url": "https://api.together.xyz/v1",
|
||||
|
||||
"api_key": "API_KEY",
|
||||
|
||||
}
|
||||
|
||||
"rerank_config": {
|
||||
"api_url": "https://api.together.xyz/v1",
|
||||
"api_key": "API_KEY"
|
||||
}
|
||||
}'
|
||||
|
||||
```
|
||||
|
||||
## API Design Overview
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue