Skip to content

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
Contributor

@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
@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.

3 participants