No9 / watsonx-samples-tf

Terraform scripts to provision watsonx samples on IBM Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

watsonx-samples-tf

OpenTofu scripts to provision watsonx samples on IBM Cloud.

The complete list of samples is available here and this repo will be updated as I work with partners to build out watsonx solutions.

Name Scripts Details
Introduction to retrieval-augmented generation simple-rag Uses a small knowledge base and a simple search component to demonstrate the basic pattern.
LangChain and an Elasticsearch vector database elastic-langchain-rag Demonstrates how to use LangChain to apply an embedding model to documents in an Elasticsearch vector database. The notebook then indexes and uses the data store to generate answers to incoming questions.
Use watsonx, and Elasticsearch Python SDK to answer questions RAG elastic-python-rag Demonstrates how to use the Elasticsearch Python SDK to apply an embedding model to documents in an Elasticsearch vector database. The notebook then indexes and uses the data store to generate answers to incoming questions.

Deploy

schematics

To run the samples you can execute them in a schematics workspace

desktop

  1. Set the by setting the TF_VAR_ibmcloud_api_key environment variable to an API key obtained from IAM

    export TF_VAR_ibmcloud_api_key
    
  2. changing directory to the sample you wish to provision and running tofu init then tofu apply

About

Terraform scripts to provision watsonx samples on IBM Cloud

License:MIT License


Languages

Language:HCL 100.0%