-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Comments
AI21 offers embeddings thru an API? |
Resolved already / can be closed? In: https://github.com/hwchase17/langchain/blob/7728a848d019b7a001f50c5c7e24be3798f319bb/langchain/llms/ai21.py#L22 |
can I work on this issue |
Solved on #2253 |
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.
is this issue solved or can I assign this issue to myself. |
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! |
This looks resolved / can be closed 👍 |
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. |
No description provided.
The text was updated successfully, but these errors were encountered: