- Embedding
- Chat
- Completion
Embedding
corresponding
to the package langchain/embeddings
in langchain:
API Initialization
To use the LLM services based on Baidu Qianfan, you have to initialize these parameters: You could either choose to init the AK,SK in environment variables or init params:Use different models in 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:
- Set up the field called