Skip to content
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

Merged
merged 6 commits into from
May 10, 2023

Conversation

raulraja
Copy link
Contributor

@raulraja raulraja commented May 9, 2023

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

raulraja and others added 6 commits May 9, 2023 16:10
… 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
@raulraja
Copy link
Contributor Author

raulraja commented May 9, 2023

@xebia-functional/team-ai I think this is ready for review

@realdavidvega
Copy link
Contributor

Looks great to me, thanks @raulraja! 🙂

): Chain = object : Chain {

private val inputKeys: Set<String> = promptTemplate.inputKeys.toSet()
Copy link
Contributor

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.

Copy link
Contributor

@nomisRev nomisRev left a 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).

@nomisRev nomisRev merged commit bad8a94 into main May 10, 2023
@nomisRev nomisRev deleted the cu-865ca0fvw-configurable-model branch May 10, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants