This repository contains examples which you can use to test out the capabilities of IBM watsonx Code Assistant for Ansible Lightspeed.
With this VM demo you can test:
- Inferencing from natural language requests.
- Single-task and multi-task content generation for Playbooks
- Content source matching and transparency.
-
IBM Sellers/Client have to provision a VM at https://techzone.ibm.com/collection/watsonx-code-assistant/journey-code-assistant-for-ansible-lightspeed
-
Update your working directory (
/home/techzone/Documents/ansible-wca-demo-kit
) with the latest examples: Performgit fetch
&git pull
on the VS Code terminal. -
Each example has its own README.md to help give context. You can follow the instructions within the README.md or the individual YAML files.
We have uploaded few basic scenarios which gives you an idea on how watsonx Code Assistant can interpret the natural lanuguage in prompts and further by uncommenting and hitting Enter
, you can get content suggestions. To accept the content suggested, hit Tab
.
In your Playbook writing experience, you usally tend to write it in a step-by-step approach. You write the single-tasks one after the other.
- The Generative AI capabilities of watsonx Code Assistant will enable you complete your IT Automation in Playbook faster.
- Simply provide your intent in plain English language and watsonx Code Assistant will return the content suggestion for it.
- In the below example we show single-task prompt and the recommendation by watsonx Code Assistant:
- Now, take it to the next level by giving all the IT Automation instructions/tasks together. Type in all the individual tasks below the
tasks
parameter by separating it with an&
. You should comment the line in order for watsonx Code Assistant to interpret the prompt. - In the below example we show multi-task prompt and the recommendation by watsonx Code Assistant:
This comment line now acts as a prompt to the watsonx Code Assistant.
- Now that you know how watsonx Code Assistant can interpret the prompts, you can start framing your IT Automations in a sentance and just hit
Enter
- You can test your own scenarios by writing new playbooks and modifying the prompts the way you like it.
- Who are the main audience for this demo setup? ONLY IBM INTERNAL. IBM Sellers & IBM Client Engineering teams. To provision a VM go to: https://techzone.ibm.com/collection/watsonx-code-assistant/journey-code-assistant-for-ansible-lightspeed
- What is the purpose of this demo setup? This technical content can help you get acquainted with watsonx Code Assistant's features and provide you an opportunity for a live demo to clients
- Even after logging into the VM, it asks me to re-authenticate. Which credentials to provide? The same credentials you input to connect to the VM
Reach out to the watsonx Code Assistant team on the IBM internal slack channel on IBM Software workspace:
#wca-ansible-techzone-support
: Use this slack channel to discuss/ask for support/feedback specifically on TechZone Demo.#watsonx-code-assistant
: Use this slack channel to ask questions and get the latest updates around IBM watsonx Code Assistant.
Thanks Pete Nuwayser, Craig Brandt for helping in curating these examples. Some examples Forked from https://github.com/craig-br/lightspeed-demos