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. |
To run the samples you can execute them in a schematics workspace
-
Set the by setting the
TF_VAR_ibmcloud_api_key
environment variable to an API key obtained from IAMexport TF_VAR_ibmcloud_api_key
-
changing directory to the sample you wish to provision and running
tofu init
thentofu apply