Skip to content

lanchain-community [feature]: DeepInfra embeddings integration #1

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 4 commits into from
May 15, 2024

Conversation

ovuruska
Copy link
Owner

@ovuruska ovuruska commented May 13, 2024

Description

Implemented a new embedding integration that makes @deepinfra's embedding models available on langchainjs. A new class named DeepInfraEmbeddings is created, which wraps the inference API.

This PR includes an example and integration tests related to the newly implemented class. Apart from the new integration's configuration, the original open-source components are intentionally left unchanged to avoid introducing any breaking changes.

@ovuruska ovuruska marked this pull request as draft May 13, 2024 14:55
@ovuruska ovuruska marked this pull request as draft May 13, 2024 14:55
@ovuruska ovuruska self-assigned this May 14, 2024
@ovuruska ovuruska marked this pull request as ready for review May 14, 2024 15:32
@ovuruska ovuruska changed the title Init lanchain-community [feature]: DeepInfra embeddings integration May 14, 2024
Copy link

@ichernev ichernev left a comment

Choose a reason for hiding this comment

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

Looks good

/**
* The default model name to use for generating embeddings.
*/
const DEFAULT_MODEL_NAME = "sentence-transformers/clip-ViT-B-32";

Choose a reason for hiding this comment

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

This default is different than the default specified in the example above

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks for noticing. I missed that part.

@ovuruska ovuruska merged commit b50fa6b into main May 15, 2024
ovuruska added a commit that referenced this pull request Jun 3, 2024
)

* Init

* fix(type errors)

* feat(deepinfra embeddings)

* fix(default model)

* fix(deepinfra): axios is removed

* ref(deepinfra): remove redundant cast

* format(deepinfra)

* doc(deepinfra)

* doc(deepinfra)

* Update deepinfra.mdx

* Format

---------

Co-authored-by: Jacob Lee <[email protected]>
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