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

Adding NomicEmbeddingModel #592

Merged
merged 2 commits into from Feb 5, 2024
Merged

Adding NomicEmbeddingModel #592

merged 2 commits into from Feb 5, 2024

Conversation

langchain4j
Copy link
Owner

@langchain4j langchain4j commented Feb 2, 2024

An integration with Nomic Atlas's Text Embeddings API.

@langchain4j
Copy link
Owner Author

Hi @AndriyMulyar, please review

Copy link

@AndriyMulyar AndriyMulyar left a comment

Choose a reason for hiding this comment

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

Approved with one suggestion.

.logResponses(getOrDefault(logResponses, false))
.build();
this.modelName = getOrDefault(modelName, "nomic-embed-text-v1");
this.taskType = taskType;

Choose a reason for hiding this comment

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

The default task type should be search_document.

If you do not specify the task type in the http request, it will default to this automatically!

Copy link
Owner Author

Choose a reason for hiding this comment

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

Since taskType is not a mandatory field, it does not have a default value here to delegate this to Nomic

@langchain4j
Copy link
Owner Author

@AndriyMulyar thanks for the review!

@langchain4j langchain4j merged commit 55bcd5c into main Feb 5, 2024
6 checks passed
@langchain4j langchain4j deleted the nomic branch February 5, 2024 07:39
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.

None yet

2 participants