供應商更多Ascend在此頁面上Ascend Ascend 是華為提供的自然處理單元 本頁介紹如何將 ascend NPU 與 LangChain 搭配使用。 安裝 使用 torch-npu 安裝,使用 pip install torch-npu 請按照以下指定的安裝說明進行操作 依照此處所示安裝 CANN。 嵌入模型 請參閱使用範例。 from langchain_community.embeddings import AscendEmbeddingsAPI 參考文檔:AscendEmbeddings