Python
使用 LangChain Python 与 SparkLLM 集成。
SparkLLM 是科大讯飞独立研发的大规模认知模型。 它通过学习大量文本、代码和图像,具备跨领域知识和语言理解能力, 能够理解自然对话并执行相应任务。
from langchain_community.chat_models import ChatSparkLLM
from langchain_community.llms import SparkLLM
from langchain_community.embeddings import SparkLLMTextEmbeddings