DeepFellow API ReferenceRerank
Create Rerank
POST
Rerank given documents.
header
AuthorizationBearer <token>OpenAI-Organization?|Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.
OpenAI-Project?|Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization
application/json- body
model*stringquery*stringdocuments*array<string|>top_n?integer|nullreturn_documents?boolean|nullrank_fields?array<string>|nullmax_chunks_per_doc?integer|nullSuccessful Response
application/json- response
id?string|nullresults*array<>meta?|nullExample Request
curl -X POST 'https://deepfellow-server-host/v1/rerank' \ -H 'Content-Type: application/json' \ -d '{ "model": "string", "query": "string", "documents": [ "string" ]}'Example Response
{ "id": "string", "results": [ { "index": 0, "relevance_score": 0, "document": {} } ], "meta": {}}We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.