Closed brunopistone closed 7 months ago
Hi, @brunopistone
I'm helping the LangChain team manage their backlog and am marking this issue as stale. It looks like you requested the addition of an AmazonAPIGatewayEmbeddings class for text embeddings in the repository. The proposed class includes methods for embedding documents and queries using the API, and you provided a code example for implementing the class. As there hasn't been any further activity or comments on this issue, I wanted to check if this is still relevant to the latest version of the LangChain repository. If it is, please let the LangChain team 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 contribution, and we look forward to hearing from you.
Feature request
As of today, it's not possible to use Amazon API Gateway for exposing embeddings model and use it as part of a chain (e.g. ConversationalRetrievalChain). As of today, AmazonAPIGateway can be used only as LLM for text generation, but you cannot use it as embeddings for text embeddings generation (e.g. as part of ConversationalRetrievalChain)
Motivation
Amazon API Gateway can be adopted for both Text generation and Text Embeddings. Amazon Bedrock provides different type of models (LLMs and Embeddings models). In this way, developers can use Amazon API Gateway for Retrieval Augmented Generation solutions
Your contribution
The class can be defined as following: