Skip to content

Chain builder API not working with Claude? #137

Answered by Abraxas-365
BWStearns asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BWStearns I think you are sending in the input variables the "bunch of instructions: {{input}}" when you should just send the 'input'
example :

 let spelling_and_grammar_prompt = "Is Lima the capital of: {{input}}";
    let full_prompt = message_formatter![
        fmt_message!(Message::new_system_message("Reply with a boolean: 'true' or 'false'.")),
        fmt_template!(HumanMessagePromptTemplate::new(template_jinja2!(
            spelling_and_grammar_prompt,
            "input"
        )))
    ];

    let claude = LLMChainBuilder::new()
        .prompt(full_prompt)
        .llm(claude::Claude::default()
            .with_options(claude_options)
            .with_model("claude-3-hai…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Abraxas-365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants