VS Code Extension¶
The Sovara VS Code extension provides an interactive visual interface for exploring LLM call dataflow graphs.
Installation¶
Building the Extension¶
- Install Node.js if you haven't already
- Navigate to the user interfaces directory:
- Build the extension:
Running the Extension¶
- Open the Sovara project in VS Code
- From the debugger options (in
launch.json), select "Run Extension" - Press F5 or click the Run button
- A new VS Code window opens with the extension active
Look for the bar chart icon in the VS Code side panel to access the extension.
Features¶
Dataflow Graph¶
The main view displays a directed graph where:
- Nodes represent LLM calls
- Edges show data dependencies between calls
- Layout is automatically computed for optimal readability
Node Interactions¶
Click on any node to:
- View Input - See the full prompt sent to the LLM
- View Output - See the LLM's response
- Edit Input - Modify the input and re-run
- Edit Output - Override the output and re-run downstream
- Navigate to Code - Jump to the source code location
Editing Inputs and Outputs¶
When you edit an input or output:
- The experiment re-runs using cached LLM calls (for speed)
- Your edits are applied at the appropriate point
- Downstream LLM calls are re-executed with the modified data
This enables rapid iteration and debugging of your LLM pipelines.
Session History¶
The extension maintains a history of runs, allowing you to:
- View past graph topologies
- Compare inputs and outputs across runs
- Return to previous states
Build Commands¶
| Command | Description |
|---|---|
npm run build:all |
Build both extension and webapp |
npm run build:extension |
Build VS Code extension only |
npm run build:webapp |
Build web app only |
Troubleshooting¶
Clean Install¶
If you encounter issues:
Rebuild Extension¶
View Extension Logs¶
In the VS Code window running the extension:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "Developer: Toggle Developer Tools"
- Check the Console tab for logs
View Web App Logs¶
If using the web app in Chrome:
- Right-click anywhere on the page
- Select "Inspect"
- Go to the Console tab
Web App Alternative¶
Sovara also supports a standalone web application:
Running the Web App¶
-
Start or restart the backend:
-
In another terminal, start the frontend dev server:
-
Open the localhost link displayed in your browser