Baidu Cloud is a cloud service provided by Baidu, Inc., headquartered in Beijing. It offers a cloud storage service, client software, file management, resource sharing, and Third Party Integration.

Installation and Setup

Register and get the Qianfan AK and SK keys here.

LLMs

Baidu Qianfan

See a usage example.
from langchain_community.llms import QianfanLLMEndpoint

Chat models

Qianfan Chat Endpoint

See a usage example. See another usage example.
from langchain_community.chat_models import QianfanChatEndpoint

Embedding models

Baidu Qianfan

See a usage example. See another usage example.
from langchain_community.embeddings import QianfanEmbeddingsEndpoint

Document loaders

Baidu BOS Directory Loader

from langchain_community.document_loaders.baiducloud_bos_directory import BaiduBOSDirectoryLoader

Baidu BOS File Loader

from langchain_community.document_loaders.baiducloud_bos_file import BaiduBOSFileLoader

Vector stores

Baidu Cloud ElasticSearch VectorSearch

See a usage example.
from langchain_community.vectorstores import BESVectorStore

Baidu VectorDB

See a usage example.
from langchain_community.vectorstores import BaiduVectorDB