Skip to content

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Sep 9, 2024

curl -X 'POST' \
  'http://localhost:8000/v1/rerank' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "cohere:rerank-english-v3.0",
    "query": "A man is eating pasta.",
    "documents": [
        "A man is eating food.",
        "A man is eating a piece of bread.",
        "The girl is carrying a baby.",
        "A man is riding a horse.",
        "A woman is playing violin."
    ]
  }'

@sigoden sigoden merged commit e5cc194 into main Sep 9, 2024
3 checks passed
@sigoden sigoden deleted the feat-rerank-api branch September 9, 2024 11:54
@oatmealm
Copy link

It it possible to use a rerank model with ollama?

@sigoden
Copy link
Owner Author

sigoden commented Sep 12, 2024

ollama does not support reranker model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants