PSWeave 101 - Installing and showing how to use system prompts



AI Summary

  • Introduction
    • Doug Fink, Microsoft MVP, introduces PSWeave module.
    • Works with OpenAI GPT models.
  • Installation
    • Command: install-module psweave
    • Installs PSWeave and PowerShell AI assistant if not present.
    • Instructions for API key from OpenAI in the readme.
  • Cost
    • API usage is inexpensive.
    • Multiple demo runs per month cost under a dollar.
  • Usage
    • Command: weave-list
    • Lists 27 prompts for various tasks (e.g., code explanation, math tutoring, Microsoft Graph wizard).
    • Prompts are searchable and located in the module’s instructions folder.
  • Demonstration
    • Example: Compare and contrast feature.
    • Creates a string with items separated by commas.
    • Pipes the string into weave.
    • Autocomplete available with Ctrl + Spacebar.
    • Output is sent to clipboard.
  • Output
    • Visual Studio Code used to display output.
    • Weave generates a markdown table for comparison.
    • The table is rendered in VS Code to view the comparison.
  • Flexibility
    • Not limited to specific terms; can compare various items (e.g., programming languages, car models, scientific facts).
    • Command: weave compare and contrast.
  • Conclusion
    • This is just the beginning of PSWeave’s capabilities.