@promptbook/templates 0.103.0-34 → 0.103.0-36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -21
- package/esm/index.es.js +527 -570
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +3 -1
- package/esm/typings/src/_packages/core.index.d.ts +3 -1
- package/esm/typings/src/_packages/wizard.index.d.ts +3 -1
- package/esm/typings/src/book-components/_common/Tooltip/Tooltip.d.ts +47 -0
- package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +2 -1
- package/esm/typings/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +13 -0
- package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +15 -0
- package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.test.d.ts +1 -0
- package/esm/typings/src/transpilers/{openai → openai-sdk}/register.d.ts +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +527 -570
- package/umd/index.umd.js.map +1 -1
- /package/esm/typings/src/transpilers/{openai → openai-sdk}/OpenAiSdkTranspiler.d.ts +0 -0
- /package/esm/typings/src/{playground/permanent/transpilers-playground.d.ts → transpilers/openai-sdk/playground/playground.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -70,11 +70,15 @@ The main challenge is to narrow it down, constrain it, set the proper **context,
|
|
|
70
70
|
|
|
71
71
|
Promptbook takes the best from both worlds. You are defining your AI behavior by simple **books**, which are very explicit. They are automatically enforced, but they are very easy to understand, very easy to write, and very reliable and portable.
|
|
72
72
|
|
|
73
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/>
|
|
75
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
76
|
+
<br/>
|
|
77
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
78
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
79
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
80
|
+
|
|
81
|
+
</td></tr></table>
|
|
78
82
|
|
|
79
83
|
<div style="page-break-after: always;"></div>
|
|
80
84
|
|
|
@@ -88,11 +92,15 @@ You can look at it as prompting (or writing a system message), but decorated by
|
|
|
88
92
|
|
|
89
93
|
Personas define the character of your AI persona, its role, and how it should interact with users. It sets the tone and style of communication.
|
|
90
94
|
|
|
95
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
96
|
+
|
|
97
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
98
|
+
<br/>
|
|
99
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
100
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
101
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
91
102
|
|
|
92
|
-
|
|
93
|
-
alt="Paul Smith & Associés Book"
|
|
94
|
-
src="https://promptbook.studio/embed/book-preview.png?book=Paul%20Smith%20%26%20Associ%C3%A9s%0A%20%20%20%20%20%20%7C%20PERSONA%20You%20are%20a%20company%20lawyer.%0A%20%20%20%20%20%20%7C%20Your%20job%20is%20to%20provide%20legal%20advice%20and%20support%20to%20the%20company%20and%20its%20employees.%0A%20%20%20%20%20%20%7C%20You%20are%20knowledgeable%2C%20professional%2C%20and%20detail-oriented.&width=800&height=450&nonce=0"
|
|
95
|
-
/>
|
|
103
|
+
</td></tr></table>
|
|
96
104
|
|
|
97
105
|
#### `Knowledge` commitment
|
|
98
106
|
|
|
@@ -102,11 +110,18 @@ This can include domain-specific knowledge, company policies, or any other relev
|
|
|
102
110
|
|
|
103
111
|
Promptbook Engine will automatically enforce this knowledge during interactions. When the knowledge is short enough, it will be included in the prompt. When it is too long, it will be stored in vector databases and RAG retrieved when needed. But you don't need to care about it.
|
|
104
112
|
|
|
113
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
114
|
+
|
|
115
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
116
|
+
<br/>
|
|
117
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
118
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
119
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
120
|
+
<br/>
|
|
121
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
122
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
105
123
|
|
|
106
|
-
|
|
107
|
-
alt="Paul Smith & Associés Book"
|
|
108
|
-
src="https://promptbook.studio/embed/book-preview.png?book=Paul%20Smith%20%26%20Associ%C3%A9s%0A%20%20%20%20%20%20%7C%20PERSONA%20You%20are%20a%20company%20lawyer.%0A%20%20%20%20%20%20%7C%20Your%20job%20is%20to%20provide%20legal%20advice%20and%20support%20to%20the%20company%20and%20its%20employees.%0A%20%20%20%20%20%20%7C%20You%20are%20knowledgeable%2C%20professional%2C%20and%20detail-oriented.%0A%20%20%20%20%20%20%7C%20KNOWLEDGE%20%20https%3A%2F%2Fcompany.com%2Fcompany-policies.pdf%0A%20%20%20%20%20%20%7C%20KNOWLEDGE%20https%3A%2F%2Fcompany.com%2Finternal-documents%2Femployee-handbook.docx&width=800&height=450&nonce=0"
|
|
109
|
-
/>
|
|
124
|
+
</td></tr></table>
|
|
110
125
|
|
|
111
126
|
#### `Rule` commitment
|
|
112
127
|
|
|
@@ -114,21 +129,42 @@ Rules will enforce specific behaviors or constraints on the AI's responses. This
|
|
|
114
129
|
|
|
115
130
|
Depending on rule strictness, Promptbook will either propagate it to the prompt or use other techniques, like adversary agent, to enforce it.
|
|
116
131
|
|
|
132
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
117
133
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/>
|
|
134
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
135
|
+
<br/>
|
|
136
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
137
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
138
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
139
|
+
<br/>
|
|
140
|
+
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
141
|
+
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
142
|
+
**RULE** Never provide legal advice about criminal law.<br/>
|
|
143
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
144
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
145
|
+
|
|
146
|
+
</td></tr></table>
|
|
122
147
|
|
|
123
148
|
#### `Action` commitment
|
|
124
149
|
|
|
125
150
|
Action Commitment allows you to define specific actions that the AI can take during interactions. This can include things like posting on a social media platform, sending emails, creating calendar events, or interacting with your internal systems.
|
|
126
151
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/>
|
|
152
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
153
|
+
|
|
154
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
155
|
+
<br/>
|
|
156
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
157
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
158
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
159
|
+
<br/>
|
|
160
|
+
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
161
|
+
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
162
|
+
**RULE** Never provide legal advice about criminal law.<br/>
|
|
163
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
164
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
165
|
+
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
166
|
+
|
|
167
|
+
</td></tr></table>
|
|
132
168
|
|
|
133
169
|
[Read more about the language](./BLUEPRINT.md)
|
|
134
170
|
|