-
Notifications
You must be signed in to change notification settings - Fork 15
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
CU-865ca0fvw Pass LLMModel through all chains #43
Conversation
… into cu-865ca0fvw-configurable-model # Conflicts: # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/CombineDocsChainSpec.kt # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/LLMChainSpec.kt # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/VectorQAChainSpec.kt
…able-model # Conflicts: # kotlin/src/commonMain/kotlin/com/xebia/functional/chains/LLMChain.kt # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/CombineDocsChainSpec.kt # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/LLMChainSpec.kt # kotlin/src/commonTest/kotlin/com/xebia/functional/chains/VectorQAChainSpec.kt
@xebia-functional/team-ai I think this is ready for review |
Looks great to me, thanks @raulraja! 🙂 |
): Chain = object : Chain { | ||
|
||
private val inputKeys: Set<String> = promptTemplate.inputKeys.toSet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Quite some unrelated formatting changes. We need to fix spotless
, I can raise a PR after this one gets merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Try to avoid formatting changes @raulraja 😘 (Spotless will fix this).
Introduces a new
LLMModel
passed through all chains that may depend on the LLMChain to run its internal operations. Ultimately we need a way to pass all config related to temperature etc., to the functions that perform a prompt. Both in Chains but also in the AI dsl at #33