Skip to main content
Open on GitHub

Baidu

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
API Reference:QianfanLLMEndpoint

Chat modelsโ€‹

Qianfan Chat Endpointโ€‹

See a usage example. See another usage example.

from langchain_community.chat_models import QianfanChatEndpoint
API Reference: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
API Reference:BaiduBOSFileLoader

Vector storesโ€‹

Baidu Cloud ElasticSearch VectorSearchโ€‹

See a usage example.

from langchain_community.vectorstores import BESVectorStore
API Reference:BESVectorStore

Baidu VectorDBโ€‹

See a usage example.

from langchain_community.vectorstores import BaiduVectorDB
API Reference:BaiduVectorDB

Was this page helpful?