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

Add Nomic embedding integration #610

Merged
merged 9 commits into from
Mar 7, 2024
Merged

Conversation

sky-2002
Copy link

This PR adds integration of embeddings with Nomic.

Example usage:

from gptcache.embedding import Nomic

test_sentence = 'Hey this is Nomic embedding integration to gptcache.'
encoder = Nomic(model='nomic-embed-text-v1.5', 
                            api_key='<your-nomic-api-key>', 
                            dimensionality=64)
embed = encoder.to_embeddings(test_sentence)

Note: I have tested this functionality and it works as intended.
Looking forward for review/feedback.

@sre-ci-robot sre-ci-robot requested review from cxie and SimFG February 25, 2024 20:08
@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sky-2002
To complete the pull request process, please assign xiaofan-luan after the PR has been reviewed.
You can assign the PR to them by writing /assign @xiaofan-luan in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added needs-dco and removed dco-passed labels Mar 1, 2024
@SimFG SimFG merged commit 2834558 into zilliztech:dev Mar 7, 2024
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants