# Feature extraction using Inference API error

**URL:** <https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959>\
**Category:** Beginners\
**Created:** [May 15, 2022, 7:00am UTC](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959 "2022-05-15T07:00:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [May 16, 2023, 12:34am UTC](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959/3 "2023-05-16T00:34:25Z")

</div>

adding this response here for context

> [@SentenceSimilarityInputsCheck expected dict not list: \`\_\_root\_\_\` in \`parameters\`](https://discuss.huggingface.co/t/sentencesimilarityinputscheck-expected-dict-not-list-root-in-parameters/39715/2):
>
> Hi @Denaldo, Our API Inference supports multiple tasks. For certain models, we provide a straightforward abstraction for embedding similarity, such as with sentences. The tag and/or pipeline\_tag establishes the correct task on the API Inference backend for all compatible models on our hub. When using sentence-similarity, the backend establishes a sentence similarity pipeline. It expects multiple sentence inputs, which will subsequently be transformed into embeddings and compared through cosine…

---

_[View the full topic](https://discuss.huggingface.co/t/feature-extraction-using-inference-api-error/13959)._
