Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: proxy rerank api #851

Merged
merged 1 commit into from
Sep 9, 2024
Merged

feat: proxy rerank api #851

merged 1 commit into from
Sep 9, 2024

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