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

update NewRefineDocuments parameters type to chains.Chain #1052

Open yangxikun opened 1 month ago

yangxikun commented 1 month ago

Current:

NewRefineDocuments(initialLLMChain, refineLLMChain *LLMChain)

Hope to update to:

NewRefineDocuments(initialLLMChain, refineLLMChain Chain)

So developer can custom initialLLMChain and refineLLMChain.