This PR introduces support for multi-prompt calls in llms, while maintaining backward compatibility with the LLMChain implementation for the call function. That said we believe the default of LLMChain.Call behaviour should not flatten prompts into a single message.
Key Features
Add GenerateFromMultiPrompt support in llms.
Ensure backward compatibility for chains.Calls when using GenerateFromMultiPrompt.
Backward Compatibility
No breaking changes have been introduced. Tracing is optional and does not affect existing functionality when disabled.
[x] Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
[x] Describes the source of new concepts.
[x] References existing implementations as appropriate.
This PR introduces support for multi-prompt calls in llms, while maintaining backward compatibility with the LLMChain implementation for the call function. That said we believe the default of
LLMChain.Call
behaviour should not flatten prompts into a single message.Key Features
Backward Compatibility
No breaking changes have been introduced. Tracing is optional and does not affect existing functionality when disabled.
PR Checklist
memory: add interfaces for X, Y
orutil: add whizzbang helpers
).Fixes #123
).golangci-lint
checks.