Find answers from the community

Updated last year

I think beceause 'Bedrock' object has

I think beceause 'Bedrock' object has no attribute 'complete', there is only 'predict', How I can fix this?
L
a
7 comments
No, that's not why.

If you look at the error, there is some extra steps bedrock is requiring for formatting for claude?
The prompt should look like

Plain Text
Human: Paul graham is 
Assistant:
I found that I can bypass the error using from llama_index.llms import (
CustomLLM, and # from langchain.llms.bedrock import Bedrock
I customized the LLM to have complete method
The bedrock LLM has a complete method πŸ˜… But that works too
Yes indeed, but I couldn't use it with generate_qa_embedding_pairs, I had this error of formatting
Add a reply
Sign up and join the conversation on Discord