tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
4.84k stars 632 forks source link

Feature/llm multi prompt #1070

Open jubeless opened 1 day ago

jubeless commented 1 day ago

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