Qianfan‚ÄãIn the case you want to deploy your own model based on Ernie Bot or third-party open sources model, you could follow these steps:ÔºàOptional, if the model are included in the default models, skip itÔºâDeploy your model in Qianfan Console, get your own customized deploy endpoint.Set up the field called endpoint in the initialization:embed = QianfanEmbeddingsEndpoint(                            model="bge_large_zh",                            endpoint="bge_large_zh"                            )res = embed.embed_documents(["hi", "world"])for r in res :    print(r[:8])    [INFO] [09-15 20:01:40] logging.py:55 [t:140292313159488]: requesting llm api endpoint: /embeddings/bge_large_zh    [-0.0001582596160005778, -0.025089964270591736, -0.03997539356350899, 0.013156415894627571, 0.000135212714667432, 0.012428865768015385, 0.016216561198234558, -0.04126659780740738]    [0.0019113451708108187, -0.008625439368188381, -0.0531032420694828, -0.0018436014652252197, -0.01818147301673889, 0.010310115292668343, -0.008867680095136166, -0.021067561581730843]PreviousAzureOpenAINextBedrockAPI InitializationUse different models in QianfanCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
Baidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open-source models, but also provides various AI development tools and the whole set of development environment, which facilitates customers to use and develop large model applications easily.
Baidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open-source models, but also provides various AI development tools and the whole set of development environment, which facilitates customers to use and develop large model applications easily. ->: Qianfan‚ÄãIn the case you want to deploy your own model based on Ernie Bot or third-party open sources model, you could follow these steps:ÔºàOptional, if the model are included in the default models, skip itÔºâDeploy your model in Qianfan Console, get your own customized deploy endpoint.Set up the field called endpoint in the initialization:embed = QianfanEmbeddingsEndpoint(                            model="bge_large_zh",                            endpoint="bge_large_zh"                            )res = embed.embed_documents(["hi", "world"])for r in res :    print(r[:8])    [INFO] [09-15 20:01:40] logging.py:55 [t:140292313159488]: requesting llm api endpoint: /embeddings/bge_large_zh    [-0.0001582596160005778, -0.025089964270591736, -0.03997539356350899, 0.013156415894627571, 0.000135212714667432, 0.012428865768015385, 0.016216561198234558, -0.04126659780740738]    [0.0019113451708108187, -0.008625439368188381, -0.0531032420694828, -0.0018436014652252197, -0.01818147301673889, 0.010310115292668343, -0.008867680095136166, -0.021067561581730843]PreviousAzureOpenAINextBedrockAPI InitializationUse different models in QianfanCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.