Hello getting this error:
Traceback (most recent call last):
File "C:\Users\Mangesh Kashid\Documents\Company\WinTAK\wintak\rag_db.py", line 49, in <module>
embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mangesh Kashid\Documents\Company\WinTAK\wintak\.venv\Lib\site-packages\llama_index\embeddings\huggingface\base.py", line 134, in __init__
self._device = device or infer_torch_device()
^^^^^^^^^^^^
File "C:\Users\Mangesh Kashid\Documents\Company\WinTAK\wintak\.venv\Lib\site-packages\pydantic\main.py", line 837, in __setattr__
if self.__pydantic_private__ is None or name not in self.__private_attributes__:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mangesh Kashid\Documents\Company\WinTAK\wintak\.venv\Lib\site-packages\pydantic\main.py", line 825, in __getattr__
return super().__getattribute__(item) # Raises AttributeError if appropriate
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HuggingFaceEmbedding' object has no attribute '__pydantic_private__'. Did you mean: '__pydantic_complete__'?
How can fix it?