Skip to content

Tree of Blocks is not used as input to Custom Prompt Template #149

@codekiln

Description

@codekiln

Again, thanks for the great plugin. I see that using Tree of Blocks as input was implemented in Use tree of blocks as input · Issue #44 · briansunter/logseq-plugin-gpt3-openai. It doesn't look like this is working yet with a custom prompt; only the top-level block is inserted into the content of the message under the user role:

image

Example Logseq page:

# Using Tree of Blocks as input to a custom prompt
- ## Custom prompt that should work on a tree of blocks
  prompt-template:: Tree of Blocks Custom Prompt
	- ```prompt
	  Answer the question by adding answers in sub-blocks 
	  ```
- ## Test Cases
	- What is the coolest ...
		- Car?
	- Who is the greatest ...
		- AI/ML Researcher?
	- Describe this in a way that would make it relevant to a middle-schooler
		- Logseq
		-

I think this would be powerful because then one can define some general purpose prompt, and then give the prompt instructions to use the attributes in the header to help modify how it should process the sub-tree nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions