- Newest
- Most votes
- Most comments
The ModelTimeoutException error you're encountering when embedding documents using the BedrockEmbeddings package from langchain_community.embeddings in AWS could be due to the model taking too long to process a request, which might be resolved by reducing the batch size, implementing a retry mechanism for failed requests or monitoring the model's performance.
Figured it! Apparently, embedding functions do not like long spaces, new lines (\n) in the text. So, if they are present in your documents, they will negatively impact the embedding or simply stall. I removed the spaces in the text, and it worked!
On a side note, it was VS Code that split the sentences to make it easier for reading and programming when I prepped my text. And that's how the \ns got introduced within my texts.
Relevant content
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 24 days ago
