# Feature extraction with Inference API in Javascript

**URL:** <https://discuss.huggingface.co/t/feature-extraction-with-inference-api-in-javascript/110115>\
**Category:** Beginners\
**Created:** [October 4, 2024, 10:57am UTC](https://discuss.huggingface.co/t/feature-extraction-with-inference-api-in-javascript/110115 "2024-10-04T10:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [October 4, 2024, 11:48am UTC](https://discuss.huggingface.co/t/feature-extraction-with-inference-api-in-javascript/110115/2 "2024-10-04T11:48:04Z")

</div>

Maybe the error is more troublesome than I thought. Maybe something is wrong with the model repo settings. Try another model if you can.

> <https://github.com/langchain-ai/langchainjs/issues/1083>
>
> this error accrues while using HuggingFaceInferenceEmbeddings with NOT default m…odel.
> 
> error - unhandledRejection: Error: SentenceSimilarityInputsCheck expected dict not list: \`\_\_root\_\_\` in \`parameters\`
> at HfInference.request (file:///C:/Users/USER/Documents/GitHub/chatbot-ui/node\_modules/@huggingface/inference/dist/index.mjs:425:13)
> at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)
> at async HfInference.featureExtraction (file:///C:/Users/USER/Documents/GitHub/chatbot-ui/node\_modules/@huggingface/inference/dist/index.mjs:264:17)
> at async RetryOperation.\_fn (C:\\Users\\USER\\Documents\\GitHub\\chatbot-ui\\node\_modules\\p-retry\\index.js:50:12) {
> attemptNumber: 7,
> retriesLeft: 0
> }
> 
> all working fine if i use OpenAI embedding or HuggingFace default model

> [@SentenceSimilarityInputsCheck expected dict not list: \`\_\_root\_\_\` in \`parameters\`](https://discuss.huggingface.co/t/sentencesimilarityinputscheck-expected-dict-not-list-root-in-parameters/39715):
>
> Hi, I’m new to ML/AI and haven’t experimented much yet. I am a experienced developer in my day job though. I’m having a few issues I’m hoping someone can help me with. My main goal is the following. I’m trying to write a bot that crawls a website, vectorizes all the text and stores this in pinecone db. Then the user can ask a question, and I query pinecone db for text that hopefully answers their question and feed that to chatgpt for it to answer the question. Everything seems to be working bu…

---

_[View the full topic](https://discuss.huggingface.co/t/feature-extraction-with-inference-api-in-javascript/110115)._
