DC Artisan
DC Artisan is a VS Code extension that provides prompt enhancement and RAG pipeline tools for developers.
Features
Prompt Enhance
- Markdown-based prompt editing
- Highlights variables in {} format, e.g., {language}, {task}
- Input test values for variables and preview the result with substitutions
- Test with various providers like ChatGPT, Claude, Gemini, etc.
RAG Pipeline Mode
- Document Management:
- Upload and embed new documents directly into the vector database
- Extract text from common formats: PDF, PPT, DOCX, etc.
- Embedding Operations:
- Atomically view, update, and delete individual text chunks
- Copy documents or namespaces without re-embedding (cost-efficient operations)
- Multi-User Features:
- Full support for multi-user backend instances
- Includes user/session tracking and audit logs
Requirements
- VS Code 1.60.0 or higher
- InterSystems IRIS backend for RAG services
Extension Settings
This extension contributes the following settings:
dc-artisan.defaultProvider : Default AI provider for prompt testing
dc-artisan.defaultNamespace : Default namespace for RAG operations
Known Issues
- Initial release, please report any issues on the GitHub repository
How to compile and package the extension
Follow these steps to compile and generate the .vsix file for this extension:
- Install Node.js.
- In the terminal, navigate to the
vscode-extension folder of the project:
cd vscode-extension
- Install the project dependencies:
npm install
- Install the
vsce utility globally (used to package VSCode extensions):
npm install -g @vscode/vsce
- To compile the extension:
npm run compile
- To package and generate the
.vsix file:
vsce package
The .vsix file will be generated in the current folder and is ready to be installed in VSCode.
| |