This plugin uses the Obsidian Canvas to control what context gets send to a LLM. With chat tools like ChatGPT.com we can not be sure which information is send to the LLM. Here we have full control over what gets send and what not. We (this is I) also use the spatial arrangment on the canvas for better navigation of our context. This is a pretty early stage of an idea and I am not sure if this might get useful or not.

role.system, user, assistant.user.# create the folder
mkdir -p <your vault>/.obsidian/plugins/obsidian-canvas-context
# copy the files
cp main.js <your vault>/.obsidian/plugins/obsidian-canvas-context/main.js
cp manifest.json <your vault>/.obsidian/plugins/obsidian-canvas-context/manifest.json
cp styles.css <your vault>/.obsidian/plugins/obsidian-canvas-context/styles.css
role: system to the frontmatter of the note.[!TIP] You can drag from the bottom of one note a card out by just click dragging on the connector.
The connection should be from bottom of the system prompt to the top of the card.
Canvas Context: Run Inference.pnpm install to install dependencies.pnpm dev to start the development server.pnpm build to build the plugin for production.TypeScript
91.7%
CSS
4.4%
JavaScript
3.8%
This plugin uses the Obsidian Canvas to control what context gets send to a LLM. With chat tools like ChatGPT.com we can not be sure which information is send to the LLM. Here we have full control over what gets send and what not. We (this is I) also use the spatial arrangment on the canvas for better navigation of our context. This is a pretty early stage of an idea and I am not sure if this might get useful or not.

role.system, user, assistant.user.# create the folder
mkdir -p <your vault>/.obsidian/plugins/obsidian-canvas-context
# copy the files
cp main.js <your vault>/.obsidian/plugins/obsidian-canvas-context/main.js
cp manifest.json <your vault>/.obsidian/plugins/obsidian-canvas-context/manifest.json
cp styles.css <your vault>/.obsidian/plugins/obsidian-canvas-context/styles.css
role: system to the frontmatter of the note.[!TIP] You can drag from the bottom of one note a card out by just click dragging on the connector.
The connection should be from bottom of the system prompt to the top of the card.
Canvas Context: Run Inference.pnpm install to install dependencies.pnpm dev to start the development server.pnpm build to build the plugin for production.TypeScript
91.7%
CSS
4.4%
JavaScript
3.8%