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

new: Added jina clip text embedding #408

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

hh-space-invader
Copy link
Contributor

@hh-space-invader hh-space-invader commented Nov 19, 2024

Adding jinaai/jina-clip-v1
They provided two examples, the first one works and the second one complains about missing jinaai/jina-clip-v1/sentence_xlnet_config.json. The output of the first one seems to have small numbers, like they are normallized but its not mentioned so not sure tbh.

Update:
The text model needs pooling and normalizing
The image model needs the image to be square

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass the existing tests?
  • Have you added tests for your feature?
  • Have you installed pre-commit with pip3 install pre-commit and set up hooks with pre-commit install?

New models submission:

  • Have you added an explanation of why it's important to include this model?
  • Have you added tests for the new model? Were canonical values for tests computed via the original model?
  • Have you added the code snippet for how canonical values were computed?
  • Have you successfully ran tests with your changes locally?

@hh-space-invader hh-space-invader changed the title WIP: Added jina clip text embedding new: Added jina clip text embedding Nov 21, 2024
fastembed/image/transform/functional.py Outdated Show resolved Hide resolved
fastembed/image/transform/operators.py Outdated Show resolved Hide resolved
tests/test_text_onnx_embeddings.py Outdated Show resolved Hide resolved
fastembed/image/transform/operators.py Outdated Show resolved Hide resolved
fastembed/image/transform/operators.py Show resolved Hide resolved
fastembed/image/transform/operators.py Show resolved Hide resolved
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