HTTPError while calling API
I am trying to create a Information retreival BOT by calling API. getting below error: ---------------------------------------------------------------------------HTTPError                                 Traceback (most recent call last)File ~\AppData\Local\anaconda3\Lib\site-packages\huggingface_hub\utils_errors.py:259, in REDACTED_TOKEN_for_status(response, endpoint_name)258 try:→ 259     response.raise_for_status()260 except HTTPError as e:File ~\AppData\Local\anaconda3\Lib\site-packages\requests\models.py:1021, in Response.raise_for_status(self)1020 if http_error_msg:→ 1021     raise HTTPError(http_error_msg, response=self)HTTPError: 400 Client Error: Bad Request for url:https://api-inference.huggingface.co/models/sentence-transformers/all-mpnet-base-v2During handling of the above exception, another exception occurred:TypeError                                 Traceback (most recent call last)Cell In[1], line 3634 # create the vectorestore to use as the index35 embeddings = HuggingFaceHubEmbeddings()—> 36 vectordb_falcon = Chroma.from_documents(documents=texts,embedding=embeddings)38 # Setup Langchain39 repo_id = “mistralai/Mixtral-8x7B-Instruct-v0.1”File ~\AppData\Local\anaconda3\Lib\site-packages\langchain\vectorstores\chroma.py:771, in Chroma.from_documents(cls, documents, embedding, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)769 texts = [doc.page_content for doc in documents]770 metadatas = [doc.metadata for doc in documents]→ 771 return cls.from_texts(772     texts=texts,773     embedding=embedding,774     metadatas=metadatas,775     ids=ids,776     collection_name=collection_name,777     persist_directory=persist_directory,778     client_settings=client_settings,779     client=client,780     collection_metadata=collection_metadata,781     **kwargs,782 )File ~\AppData\Local\anaconda3\Lib\site-packages\langchain\vectorstores\chroma.py:729, in Chroma.from_texts(cls, texts, embedding, metadatas, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)721     from chromadb.utils.batch_utils import create_batches723     for batch in create_batches(724         api=chroma_collection._client,725         ids=ids,726         metadatas=metadatas,727         documents=texts,728     ):→ 729         chroma_collection.add_texts(730             texts=batch[3] if batch[3] else,731             metadatas=batch[2] if batch[2] else None,732             ids=batch[0],733         )734 else:735     chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids)File ~\AppData\Local\anaconda3\Lib\site-packages\langchain\vectorstores\chroma.py:275, in Chroma.add_texts(self, texts, metadatas, ids, **kwargs)273 texts = list(texts)274 if self._embedding_function is not None:→ 275     embeddings = self._embedding_function.embed_documents(texts)276 if metadatas:277     # fill metadatas with empty dicts if somebody278     # did not specify metadata for all texts279     length_diff = len(texts) - len(metadatas)File ~\AppData\Local\anaconda3\Lib\site-packages\langchain\embeddings\huggingface_hub.py:95, in HuggingFaceHubEmbeddings.embed_documents(self, texts)93 texts = [text.replace(“\n”, " ") for text in texts]94 _model_kwargs = self.model_kwargs or {}—> 95 responses = self.client.post(96     json={“inputs”: texts, “parameters”: _model_kwargs, “task”: self.task}97 )98 return json.loads(responses.decode())File ~\AppData\Local\anaconda3\Lib\site-packages\huggingface_hub_inference.py:167, in InferenceClient.post(self, json, data, model, task)164         raise InferenceTimeoutError(f"Inference call timed out: {url}") from error166 try:→ 167     REDACTED_TOKEN_for_status(response)168 except HTTPError as error:169     if error.response.status_code == 503:170         # If Model is unavailable, either raise a TimeoutError…File ~\AppData\Local\anaconda3\Lib\site-packages\huggingface_hub\utils_errors.py:297, in REDACTED_TOKEN_for_status(response, endpoint_name)293 elif response.status_code == 400:294     message = (295         f"\n\nBad request for {endpoint_name} endpoint:" if endpoint_name is not None else “\n\nBad request:”296     )→ 297     raise BadRequestError(message, response=response) from e299 # ConvertHTTPErrorinto aHfHubHTTPErrorto display request information300 # as well (request id and/or server error message)301 raise HfHubHTTPError(str(e), response=response) from eFile ~\AppData\Local\anaconda3\Lib\site-packages\huggingface_hub\utils_errors.py:62, in HfHubHTTPError.init(self, message, response)60     _server_message += server_message_from_headers + “\n”61 if server_message_from_body is not None:  # from body “error”—> 62     if server_message_from_body not in _server_message:63         _server_message += server_message_from_body + “\n”64 if server_multiple_messages_from_body is not None:  # from body “errors”TypeError: ‘in ’ requires string as left operand, not listCan anyone help to resolve this issue?