Tim
December 11, 2024, 6:16am
1
1. The problem
The only place to specify macros is inside the user macros section
Currently for ai outlines, you can send prompts but can not chain prompt because of the lack of macro support.
FOR EXAMPLE:
<prompt_h2>
%writeH2section% = [Write a section about %h2%]
%filter1% = [Summarize %writeH2section% into 1 paragraph]
%filter2% = [openai alt1|Llama3.1: Bold important words from %filter1%]
%finaldraft% = [openai alt1|Phi3.5: Fix Grammar and Humanize %filter2%]
%finaldraft%
</prompt_h2>
2. Simple solution
Allow use of macros inside AI outline prompt tags
Tim
December 16, 2024, 7:28am
3
Parsing inline variables
This feature will be referred to as adding ‘inline variables’
First thing we need to do is parse inline variables inside the prompt section.
We need to remove them properly,
And store them in a list
So that we can find macros, they must:
Entire macro definition on one line
Must have only 1 = sign
The macro name must be defined between 2x% signs. eg %macro%
If any of these conditions fail, the macro won’t be extracted and will be left inside the prompt.
Tim
December 17, 2024, 10:07am
5
Dev update
Inline macros inside <ai_outline_prompts>
are now supported.
Example:
It will correctly parse the inline macros. In this example it finds all 4 of them.
Because all 4 macros are being sent to the AI…
You can verify that the correct prompts are being sent to the AI model in the task log.
The output looks like this
Another example
For each h3, we ask the AI model to write a joke
Check the task log.
We expect it to find 1 inline macro, and to write out that joke in <p>
tag
When we check the sample.
The H3 prints the instruction sent to the AI.
The P displays the actual output from the AI model.
Now that inline prompts inside ai outlines are possible, it opens the door for much more complex prompt chaining in long form articles.
1 Like
Have you pushed out this update? I didn’t get an update notice. What is the latest version?
Tim
December 20, 2024, 3:38am
7
Just grab it manually.
The version number is renamed from 2024->24
So manual update required this one time for auto updates to work correctly.
Error installing over previous version … do i need to uninstall? If so, will I lose all my work?
Tim
December 20, 2024, 5:48pm
9
Feel free to remove previous install.
Running the uninstall won’t remove your settings.
Then install it using the new msi setup.