Run cd terraform-provider-datarobot and then go mod tidy
Run make install to build the provider locally.
Now you can continue with the Low Code RAG example:
Go to the examples/workflows/low_code_rag directory.
cd examples/workflows/low_code_rag
The provider requires an API key set in an environment variable named DATROBOT_API_TOKEN. Copy the API key from the DataRobot console and create the DATAROBOT_API_TOKEN environment variable.
export DATAROBOT_API_TOKEN=<YOUR_API_KEY>
Where <your API key> is the API key you copied from the DataRobot Console.
The example requires Google Cloud service account credentials in order to call the Google Vertex AI API. Follow this guide to create a service account key for your Google account.
In a text editor create a new file terraform.tfvars in low_code_rag with the following settings.
use_case_name = "<use case name>"
google_cloud_credential_source_file = "<source_file>"
Where:
- <use case name> is the name of the use case you want to create.
- <source file> is the path to your Google Cloud service account key file.
Initialize the provider.
terraform init
This reads the main.tf configuration file, which contains the information on how the provider will create the Datarobot resources. The terraform.tfvars file sets the use case name.
Create the Terraform plan. This shows the actions the provider will take, but won't perform them.
terraform plan
Create the resources.
terraform apply
Enter yes when prompted to apply the plan and create the resources.
Once the creation is complete, navigate to the datarobot_qa_application_url to view your Q&A application.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.