Package dev.langchain4j.model.vertexai
Class VertexAiLanguageModel
java.lang.Object
dev.langchain4j.model.vertexai.VertexAiLanguageModel
- All Implemented Interfaces:
dev.langchain4j.model.language.LanguageModel
public class VertexAiLanguageModel
extends Object
implements dev.langchain4j.model.language.LanguageModel
Represents a Google Vertex AI language model with a text interface, such as text-bison.
See details here.
Please follow these steps before using this model:
1. Authentication
When developing locally, you can use one of:
a) Google Cloud SDK
b) Service account When using service account, ensure that
2. Authorization
3. Prerequisites
Please follow these steps before using this model:
1. Authentication
When developing locally, you can use one of:
a) Google Cloud SDK
b) Service account When using service account, ensure that
GOOGLE_APPLICATION_CREDENTIALS environment variable points to your JSON service account key.
2. Authorization
3. Prerequisites
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.language.LanguageModel
generate
-
Constructor Details
-
VertexAiLanguageModel
-
-
Method Details
-
generate
- Specified by:
generatein interfacedev.langchain4j.model.language.LanguageModel
-
builder
-