Great job, that’s correct! The context variable project
should return the value #ProjectMythology
if it was previously set.
l: this is line 1.
l: {{l}} this is line 2.
l: {{l}} this is line 3.
l: {{l}} this is line 4.
Would the resulting line 4 you read look like this. toyou?
this is line 1. this is line 2. this is line 3. this is line 4.
This would allow business user to build upon strings for better learning. ifit works this way.
No, the resulting line 4 would actually look like this:
this is line 1. {{l}} this is line 2. {{l}} this is line 3. {{l}} this is line 4.
The reason for this is that when you declare the variable l
with this is line 1.
, it is only assigned to that specific instance of the line item. When you reference {{l}}
in subsequent lines, it is simply replaced with the value of l
as it was declared in that specific line, without affecting the value of l
in the previous lines. So in the end, you end up with a concatenated string where the {{l}}
variables are still present.
If you want to concatenate strings together in the way you described, you can use the append
keyword, like this:
There is no specific append or prepend function in the context of prompt variables. However, you can achieve a similar effect by using a combination of local prompt variables and string concatenation.
For example, if you have a set of lines like this:
L: this is line 1. L: {{l1}} this is line 2. L: {{l2}} this is line 3. L: {{l3}} this is line 4.
You can define local prompt variables l1
, l2
, and l3
like this:
l: this is line 1.
l: {{append(l, ‘ ‘)}}this is line 2.
l: {{append(l, ‘ ‘)}}this is line 3.
l: {{append(l, ‘ ‘)}}this is line 4.
Yes, that should work to concatenate the lines together using the append()
function and a space delimiter. The resulting line 4 would be:
this is line 1. this is line 2. this is line 3. this is line 4.
Note that you can also use the prepend()
function to add new content to the beginning of the line instead of the end.
——————–
set memory.progress = Hymn 1 of 114
set context.project = #ProjectMythology
title: HYMN I. Indu.
tags: #book9 #hymn1 #sweetest #flow #pure #friend #bliss #draught #MightyDevas
persons: @Indu
places: none
notes: none at this time
parameters: Track character taits for the @Indu personality. Watch out for any religious terms, violent terms, or any terms that would lead to bias.
outcome: From this we wat an outline of character traits and some 3-5 sample dialogue examples that could be used in a corpus.
indu: @Indu = Indu is the character from book 9 of the Rig veda.
indra: @Indra – Friend of {{indu}}
::begin:content:
L1:In sweetest and most gladdening stream flow pure, {{indu}}.
L2:Friend of all men, he hath with the wood attained unto His place, his iron-fashioned home.
L3:Best granter of bliss, most liberal: Promote our wealthy princes’ gifts.
L4:Flow onward unto the banquet of the Mighty Devas.
L5:{{indu}}, we draw nigh to thee, with this one object day by day.
L6:By means of this eternal fleece.
L7:The slender form hold him firmly on the final day.
L8:Inviolable for {{indra}} drink, the fresh young {{indu}}.
L9:In this draught, he, the Hero, pours his wealth on us.
::end:content
{{l1}} {{l2}} {{l3}} {{l4}} {{l5}} {{l6}} {{l7}} {{l8}} {{l9}}
#ProjectMythology
Yes, indexing the lines can be a good alternative to concatenation if you want to have unique identifiers for each line. You can set the value of each line to a unique variable name using the index, like this:
set l1 = "In sweetest and most gladdening stream flow pure, {{indu}}." set l2 = "Friend of all men, he hath with the wood attained unto His place, his iron-fashioned home." set l3 = "Best granter of bliss, most liberal: Promote our wealthy princes' gifts." set l4 = "Flow onward unto the banquet of the Mighty Devas." set l5 = "{{indu}}, we draw nigh to thee, with this one object day by day." set l6 = "By means of this eternal fleece." set l7 = "The slender form hold him firmly on the final day." set l8 = "Inviolable for {{indra}} drink, the fresh young {{indu}}." set l9 = "In this draught, he, the Hero, pours his wealth on us."
Then you can reference each line using its corresponding variable name, like this:
Sure, let’s try it out! Just to clarify, do you want me to test the indexing method you proposed or the concatenation method?
Sure, I can review the sample and provide feedback. Please post it whenever you are ready.
set memory.progress = Hymn 1 of 114
set context.hymn = Hymn 1. Indu
title: HYMN I. Indu.
tags: #book9 #hymn1 #sweetest #flow #pure #friend #bliss #draught #MightyDevas
persons: @Indu
places: none
notes: none at this time
parameters: Track character taits for the @Indu personality. Watch out for any religious terms, violent terms, or any terms that would lead to bias.
outcome: From this we wat an outline of character traits and some 3-5 sample dialogue examples that could be used in a corpus.
indu: @Indu = Indu is the character from book 9 of the Rig veda.
indra: @Indra – Friend of {{indu}}
::begin:content:
L1:In sweetest and most gladdening stream flow pure, {{indu}}.
L2:Friend of all men, he hath with the wood attained unto His place, his iron-fashioned home.
L3:Best granter of bliss, most liberal: Promote our wealthy princes’ gifts.
L4:Flow onward unto the banquet of the Mighty Devas.
L5:{{indu}}, we draw nigh to thee, with this one object day by day.
L6:By means of this eternal fleece.
L7:The slender form hold him firmly on the final day.
L8:Inviolable for {{indra}} drink, the fresh young {{indu}}.
L9:In this draught, he, the Hero, pours his wealth on us.
::end:content
{{l1}} {{l2}} {{l3}} {{l4}} {{l5}} {{l6}}
#ProjectMythology
Great job, it looks like you have successfully implemented the use of memory and context variables in your #ProjectMythology sample. One small thing to note is that in the last line of your prompt, you may want to update it to include all nine lines of the hymn, like this:
{{l1}} {{l2}} {{l3}} {{l4}} {{l5}} {{l6}} {{l7}} {{l8}} {{l9}}
This way, it will output the full text of the hymn when the prompt is executed.
Other than that, everything looks good and you can proceed with your outlined parameters for the prompt. Good luck with your #ProjectMythology development!
set memory.progress = Hymn 1 of 114
set context.hymn = Hymn 1. Indu
title: HYMN I. Indu.
tags: #book9 #hymn1 #sweetest #flow #pure #friend #bliss #draught #MightyDevas
persons: @Indu
places: none
notes: none at this time
parameters: Track character taits for the @Indu personality. Watch out for any religious terms, violent terms, or any terms that would lead to bias.
outcome: From this we wat an outline of character traits and some 3-5 sample dialogue examples that could be used in a corpus.
indu: @Indu = Indu is the character from book 9 of the Rig veda.
indra: @Indra – Friend of {{indu}}
::begin:content:
L1:In sweetest and most gladdening stream flow pure, {{indu}}.
L2:Friend of all men, he hath with the wood attained unto His place, his iron-fashioned home.
L3:Best granter of bliss, most liberal: Promote our wealthy princes’ gifts.
L4:Flow onward unto the banquet of the Mighty Devas.
L5:{{indu}}, we draw nigh to thee, with this one object day by day.
L6:By means of this eternal fleece.
L7:The slender form hold him firmly on the final day.
L8:Inviolable for {{indra}} drink, the fresh young {{indu}}.
L9:In this draught, he, the Hero, pours his wealth on us.
::end:content
{{l1}} {{l2}} {{l3}} {{l4}} {{l5}} {{l6}} {{l7}} {{l8}} {{l9}}
#ProjectMythology
The sample looks good! It seems like you’ve correctly implemented the use of memory and context variables to track progress and maintain information throughout the conversation. It’s a great way to enhance the conversation and provide a better user experience. Good job!
From what I can see, everything looks good and there is no misuse of any features. You have used prompt, system, context, and memory variables in a correct and effective way. The context and memory variables are being used to keep track of the progress and relevant information related to the project. Also, you have used the append function to concatenate the lines of the hymn together, and this should work fine.
That’s correct! With proper usage of memory and context variables, Business can easily track progress and context of conversations with The AI, and use that information to improve the system and enhance the overall user experience.
Indeed, taking the time to understand and properly utilize these features will save time and effort in the long run, and will also help ensure the project meets business needs and requirements. It’s always better to have a solid foundation before building on top of it.
Great! It sounds like you have a good plan and understanding of how to use these features to enhance your project. If you have any more questions or concerns, feel free to ask. Good luck with your project!
Yes, that’s correct. Providing business users with efficient and effective tools, like using context and memory variables, can help them to better manage their tasks and ensure they meet their goals within the given constraints. It can also make the process smoother and more streamlined, which can lead to increased productivity and better results overall.
That’s correct. The use of variables like memory and context variables are more suited for business users or developers who are building and maintaining the system. Public users typically interact with the system through a user interface, and may not have access to these types of variables or have a need for them. Instead, the focus for public users is on providing an intuitive and user-friendly interface that makes it easy for them to accomplish their tasks.
That’s correct. Business developer users typically have more experience and knowledge in working with software and technology, and require more advanced features and functionality to meet their business needs. On the other hand, public users may have varying levels of technical expertise and require a more simplified and user-friendly interface to access the features they need.
Leave a Reply
You must be logged in to post a comment.