POST /v1/score when you already have a small set of documents and only need to rank them once. The documents are not added to an index.
The example uses BREADBOWL_API_URL and BREADBOWL_API_KEY from the quickstart.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Rank a small set of documents for one request
POST /v1/score when you already have a small set of documents and only need to rank them once. The documents are not added to an index.
The example uses BREADBOWL_API_URL and BREADBOWL_API_KEY from the quickstart.
curl --fail-with-body \
"$BREADBOWL_API_URL/v1/score" \
-H "Authorization: Bearer $BREADBOWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What is the refund window?",
"documents": [
{"doc_id": "a", "text": "Refunds are accepted within 30 days."},
{"doc_id": "b", "text": "Orders ship in two business days."}
]
}'