-
Notifications
You must be signed in to change notification settings - Fork 4
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
LangChain support for Orchestration Client #176
Comments
Thank you very much for raising up this feature request.
Therefore, it's more than a service for LLM access. If we want to make an adapter like what we do for our LangChain package, users would be able to use the original LangChain APIs with SAP GenAI Hub. However, LangChain knows nothing about other orchestration modules beyonds the LLM access, so we need some API extensions for e.g.,:
This seems to be a big epic. |
Hey @jjtang1985, Thanks for your reply. Since we define how to initialize and call the model, we can expose the api of the orchestration model via the constructor of the langchain wrapper and just pass it through. export class GenerativeAIHubCompletion extends LLM {
orchestrationClient: OrchestrationClient;
constructor(config: OrchestrationModuleConfig, deploymentConfig?: ResourceGroupConfig | undefined) {
super();
this.orchestrationClient = new OrchestrationClient(config, deploymentConfig);
...
}
...
} What are your thoughts on this? -Kay |
Thanks for the example.
This is a valid design for initialisation and sending the request. We'll then think about the response parsing.
Maybe I should rephrase my original question.
I would assume Best, Junjie |
Yes, I think model access would be a valid starting point |
Describe the Problem
The Orchestration Client already simplifies the process of developing and kickstarting GenAI projects as well as communicating with foundation models. Now, LangChain support for OpenAI is available, and instead of writing a separate wrapper for each vendor, the idea is to proceed with a LangChain wrapper for the Orchestration Client, which would broadly cover everything.
Propose a Solution
LangChain wrapper for Orchestration client, e.g.:
Describe Alternatives
No response
Affected Development Phase
Getting Started
Impact
Inconvenience
Timeline
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: