Skip to content

Store outputs and prompts automatically. how to do this

To implement this system in Obsidian (or another note/knowledge manager), you can leverage a combination of Obsidian plugins and tools that allow for form creation, automation, and linking. Here’s how you can do it:

1. Obsidian with Templater and Dataview Plugins

  • Templater Plugin: This allows you to create templates and automate the creation of notes based on user input.
  • Dataview Plugin: This plugin enables the creation of dynamic queries and links between notes, making it easier to manage and link your prompt and output files.

Steps:

  • Step 1: Create a Form Template with Templater
  • Design a template with three fields: title, prompt, and output.
  • Use Templater’s prompts to capture user input when creating a new note.
  • Example Templater script:
    # <%= tR %>
    
    - **Prompt:** Prompts/<%= tR %>
    - **Output:** Outputs/<%= tR %>
    
    # Prompt
    <%= pR %>
    
    # Output
    <%= oR %>
    
  • Step 2: Automate File Creation
  • Create two separate templates for prompts and outputs that automatically create links between each other.
  • When you fill out the form, the output is saved in the Outputs folder with the title as the filename.
  • The prompt is saved in the Prompts folder, and both notes link to each other.
  • Step 3: Use Dataview for Organization
  • Use Dataview queries to generate dynamic lists of prompts and outputs, making it easy to navigate between them.

2. Alternative: Logseq with Custom Templates

  • Logseq is another knowledge manager that could implement this system using custom templates and properties.
  • Steps:
  • Create a custom template for prompts and outputs, using Logseq's block properties to link them.
  • Automate the creation of these templates through custom queries or scripts.

3. Alternative: Notion with Database Templates

  • Notion could also implement this system using its database functionality.
  • Steps:
  • Set up a database with three fields: Title, Prompt, and Output.
  • Create a template that automatically fills out the Prompt and Output fields and saves them in their respective folders.
  • Use Notion's linking functionality to connect the prompt to the output and vice versa.

Tools Summary:

  • Obsidian: Use Templater and Dataview for maximum customization and automation.
  • Logseq: Use custom templates and block properties.
  • Notion: Use database templates and linked databases for an intuitive setup.

These tools will allow you to implement the system you described with varying degrees of automation and flexibility. Obsidian with Templater and Dataview might offer the most customizable and scriptable solution for your needs.

The above text was generated by a large language model (LLM) and its accuracy has not been validated. This page is part of 'LLMs-on-LLMs,' a Github repository by Daniel Rosehill which explores how curious humans can use LLMs to better their understanding of LLMs and AI. However, the information should not be regarded as authoritative and given the fast pace of evolution in LLM technology will eventually become deprecated. This footer was added at 16-Nov-2024.