mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-11 20:40:40 +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)
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue