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 AI21 Embeddings support #85

Closed
hwchase17 opened this issue Nov 8, 2022 · 8 comments
Closed

Add AI21 Embeddings support #85

hwchase17 opened this issue Nov 8, 2022 · 8 comments
Labels
03 enhancement Enhancement of existing functionality good first issue Good for newcomers

Comments

@hwchase17
Copy link
Contributor

No description provided.

@hwchase17 hwchase17 added 03 enhancement Enhancement of existing functionality good first issue Good for newcomers labels Nov 8, 2022
@hwchase17 hwchase17 added the llms label Dec 11, 2022
@Pablongo24
Copy link

AI21 offers embeddings thru an API?

@bcjordan
Copy link

@VikashTudu
Copy link

can I work on this issue

@LaloLalo1999
Copy link
Contributor

Solved on #2253

hwchase17 pushed a commit that referenced this issue Apr 3, 2023
This pull request adds the AI21Embeddings class to the
langchain/langchain/embeddings module, providing support for generating
text embeddings using the AI21 language model. The new class offers a
similar interface as the existing OpenAIEmbeddings class, making it easy
to integrate into the existing codebase.

The AI21Embeddings class has the following main methods:

generate_embeddings(texts, model): Generates embeddings for a list of
texts using the specified AI21 model.
get_similarity(text1, text2, model): Calculates the similarity between
two texts using the specified AI21 model.
The implementation uses the AI21 Python SDK for interacting with the
AI21 API and requires an API key for initialization. The class is
designed to be flexible and easy to use, allowing users to switch
between different AI21 models by simply providing the model name as an
argument.

This PR addresses issue #85 and provides an alternative to the existing
OpenAI-based text embeddings.

Please let me know if you have any questions or need further changes.
@ASampatKalyan
Copy link

is this issue solved or can I assign this issue to myself.

@dosubot
Copy link

dosubot bot commented Sep 20, 2023

Hi, @hwchase17! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, the issue is a request to add AI21 Embeddings support, but there are no further details provided. In the comments, there is some discussion about whether AI21 offers embeddings through an API, and one user suggests that the issue may already be resolved and can be closed, providing a link to the relevant code. Another user asks if they can work on the issue, and another user states that the issue has been solved on another thread. Finally, a user asks if the issue is solved or if they can assign it to themselves, receiving positive reactions from other users.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the LangChain project!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 20, 2023
@bcjordan
Copy link

This looks resolved / can be closed 👍

@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 27, 2023
@dosubot
Copy link

dosubot bot commented Sep 27, 2023

Thank you for your response, @bcjordan! We appreciate your input and are glad to hear that the issue seems to be resolved. We will go ahead and close the issue. If you have any further questions or need assistance, please don't hesitate to reach out.

@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
03 enhancement Enhancement of existing functionality good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants