Open haimco50 opened 3 months ago
I changed the embedding model to amazon.titan-embed-g1-text-02 (as it's shown in my flow) so it can work - the issue is happenning with cohere.embed-multilingual-v3 model
I changed the embedding model to amazon.titan-embed-g1-text-02 (as it's shown in my flow) so it can work - the issue is happenning with cohere.embed-multilingual-v3 model
thanks for pinning down the issue, can u try to see if upgrading langchain community package solves the issue
Already did so, this is the first thing I did - it didn't work - IMHO the issue seems to be with the Flowise AWS BedrockChat componnent (something with the prompt setup) - see this thread issue - https://github.com/langchain-ai/langchain/issues/18514
found out the issue, because we are using body format that is only compatible with amazon titan embeddings - https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/embeddings/AWSBedrockEmbedding/AWSBedrockEmbedding.ts#L150
cohere embeddings require another type of body format
Upgrading bedrock model from claude 2 to claude 3 and embedding model from amazon.titan-embed-text-v1 to cohere.embed-multilingual-v3 and started getting the bellow errror when tryting to upsert embeddings.
issue seeems to be related to this issue : https://github.com/langchain-ai/langchain/pull/18630
and may need upgradiung the conversation retrieval QA chain node to support this but not sure...
To Reproduce trying to upserts / chat after upgrading will cause a validation error to apear.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Flow If applicable, add exported flow in order to help replicating the problem.
Setup
npx flowise start
,pnpm start
]Additional context Add any other context about the problem here.