Skip to content

fix: add serde default for truncation direction #399

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

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Sep 4, 2024

This PR adjusts the similarity parameters to use a default for truncation direction

example request

curl "http://localhost:3000/similarity" \
-X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer hf_XXXXX" \
-H "Content-Type: application/json" \
-d '{
    "inputs": {
        "sentences": [
            "That is a happy dog",
            "That is a very happy person",
            "Today is a sunny day"
        ],
        "source_sentence": "That is a happy person"
    },
    "parameters": {}
}'
# [0.85468096,0.9658465,0.68776166]

Copy link
Collaborator

@Narsil Narsil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Narsil Narsil merged commit 29f728e into main Sep 5, 2024
4 checks passed
@Narsil Narsil deleted the drbh-patch-1 branch September 5, 2024 14:11
MasakiMu319 pushed a commit to MasakiMu319/text-embeddings-inference that referenced this pull request Nov 27, 2024
aagnone3 pushed a commit to StratisLLC/hf-text-embeddings-inference that referenced this pull request Dec 11, 2024
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