Ascend NPU accelerate Embedding model
Please ensure that you have installed CANN and torch_npu.
Example:
from langchain_community.embeddings import AscendEmbeddings model = AscendEmbeddings(model_path=<path_to_model>, device_id=0, query_instruction="Represent this sentence for searching relevant passages: " )