Skip to content

HuggingFaceAPIDocumentEmbedder Bad Request Error: list indices must be integers or slices, not str #8052

Answered by hodge-jai
hodge-jai asked this question in Questions
Discussion options

You must be logged in to vote

I only realized my issue a bit later and it was purely user error 🤦

I had to configure the Task option properly in the HuggingFace paid inference endpoint setting panel to be in line with what I was passing to the endpoint. One doesn't need to change this setting when using api_type=serverless_inference_api

Thanks for your reply!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hodge-jai
Comment options

Answer selected by julian-risch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants