examples/ernie-completion-example/README.md
Hello there! π This example demonstrates how to use the ERNIE language model with the LangChain Go library. Let's break down what this exciting code does!
This Go program showcases two main features:
The program initializes an ERNIE language model and generates text based on a prompt. Here's what it does:
After text generation, the program demonstrates how to create embeddings:
To run this example, make sure you have the necessary dependencies installed and the appropriate ERNIE API credentials set up. Then, simply run the Go file!
Remember, for actual use, you'd want to include your API key and secret key using ernie.WithAKSK(apiKey,secretKey) when initializing the model.
Have fun exploring the capabilities of ERNIE with LangChain Go! ππ€