promptbook 0.103.0-34 → 0.103.0-35
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/package.json +30 -30
package/README.md
CHANGED
|
@@ -44,11 +44,15 @@ The main challenge is to narrow it down, constrain it, set the proper **context,
|
|
|
44
44
|
|
|
45
45
|
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.
|
|
46
46
|
|
|
47
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/>
|
|
49
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
50
|
+
<br/>
|
|
51
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
52
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
53
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
54
|
+
|
|
55
|
+
</td></tr></table>
|
|
52
56
|
|
|
53
57
|
<div style="page-break-after: always;"></div>
|
|
54
58
|
|
|
@@ -62,11 +66,15 @@ You can look at it as prompting (or writing a system message), but decorated by
|
|
|
62
66
|
|
|
63
67
|
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.
|
|
64
68
|
|
|
69
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
70
|
+
|
|
71
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
72
|
+
<br/>
|
|
73
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
74
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
75
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
65
76
|
|
|
66
|
-
|
|
67
|
-
alt="Paul Smith & Associés Book"
|
|
68
|
-
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"
|
|
69
|
-
/>
|
|
77
|
+
</td></tr></table>
|
|
70
78
|
|
|
71
79
|
#### `Knowledge` commitment
|
|
72
80
|
|
|
@@ -76,11 +84,18 @@ This can include domain-specific knowledge, company policies, or any other relev
|
|
|
76
84
|
|
|
77
85
|
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.
|
|
78
86
|
|
|
87
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
88
|
+
|
|
89
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
90
|
+
<br/>
|
|
91
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
92
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
93
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
94
|
+
<br/>
|
|
95
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
96
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
79
97
|
|
|
80
|
-
|
|
81
|
-
alt="Paul Smith & Associés Book"
|
|
82
|
-
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"
|
|
83
|
-
/>
|
|
98
|
+
</td></tr></table>
|
|
84
99
|
|
|
85
100
|
#### `Rule` commitment
|
|
86
101
|
|
|
@@ -88,21 +103,42 @@ Rules will enforce specific behaviors or constraints on the AI's responses. This
|
|
|
88
103
|
|
|
89
104
|
Depending on rule strictness, Promptbook will either propagate it to the prompt or use other techniques, like adversary agent, to enforce it.
|
|
90
105
|
|
|
106
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
91
107
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/>
|
|
108
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
109
|
+
<br/>
|
|
110
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
111
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
112
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
113
|
+
<br/>
|
|
114
|
+
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
115
|
+
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
116
|
+
**RULE** Never provide legal advice about criminal law.<br/>
|
|
117
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
118
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
119
|
+
|
|
120
|
+
</td></tr></table>
|
|
96
121
|
|
|
97
122
|
#### `Action` commitment
|
|
98
123
|
|
|
99
124
|
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.
|
|
100
125
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
/>
|
|
126
|
+
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
127
|
+
|
|
128
|
+
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
129
|
+
<br/>
|
|
130
|
+
**PERSONA** You are a company lawyer.<br/>
|
|
131
|
+
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
132
|
+
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
133
|
+
<br/>
|
|
134
|
+
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
135
|
+
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
136
|
+
**RULE** Never provide legal advice about criminal law.<br/>
|
|
137
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
138
|
+
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
139
|
+
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
140
|
+
|
|
141
|
+
</td></tr></table>
|
|
106
142
|
|
|
107
143
|
[Read more about the language](./BLUEPRINT.md)
|
|
108
144
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptbook",
|
|
3
|
-
"version": "0.103.0-
|
|
3
|
+
"version": "0.103.0-35",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -88,36 +88,36 @@
|
|
|
88
88
|
"npm": ">=8.0.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@promptbook/core": "0.103.0-
|
|
91
|
+
"@promptbook/core": "0.103.0-35"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@promptbook/anthropic-claude": "0.103.0-
|
|
95
|
-
"@promptbook/azure-openai": "0.103.0-
|
|
96
|
-
"@promptbook/browser": "0.103.0-
|
|
97
|
-
"@promptbook/cli": "0.103.0-
|
|
98
|
-
"@promptbook/color": "0.103.0-
|
|
99
|
-
"@promptbook/components": "0.103.0-
|
|
100
|
-
"@promptbook/core": "0.103.0-
|
|
101
|
-
"@promptbook/deepseek": "0.103.0-
|
|
102
|
-
"@promptbook/documents": "0.103.0-
|
|
103
|
-
"@promptbook/editable": "0.103.0-
|
|
104
|
-
"@promptbook/fake-llm": "0.103.0-
|
|
105
|
-
"@promptbook/google": "0.103.0-
|
|
106
|
-
"@promptbook/javascript": "0.103.0-
|
|
107
|
-
"@promptbook/legacy-documents": "0.103.0-
|
|
108
|
-
"@promptbook/markdown-utils": "0.103.0-
|
|
109
|
-
"@promptbook/markitdown": "0.103.0-
|
|
110
|
-
"@promptbook/node": "0.103.0-
|
|
111
|
-
"@promptbook/ollama": "0.103.0-
|
|
112
|
-
"@promptbook/openai": "0.103.0-
|
|
113
|
-
"@promptbook/pdf": "0.103.0-
|
|
114
|
-
"@promptbook/remote-client": "0.103.0-
|
|
115
|
-
"@promptbook/remote-server": "0.103.0-
|
|
116
|
-
"@promptbook/templates": "0.103.0-
|
|
117
|
-
"@promptbook/types": "0.103.0-
|
|
118
|
-
"@promptbook/utils": "0.103.0-
|
|
119
|
-
"@promptbook/vercel": "0.103.0-
|
|
120
|
-
"@promptbook/website-crawler": "0.103.0-
|
|
121
|
-
"@promptbook/wizard": "0.103.0-
|
|
94
|
+
"@promptbook/anthropic-claude": "0.103.0-35",
|
|
95
|
+
"@promptbook/azure-openai": "0.103.0-35",
|
|
96
|
+
"@promptbook/browser": "0.103.0-35",
|
|
97
|
+
"@promptbook/cli": "0.103.0-35",
|
|
98
|
+
"@promptbook/color": "0.103.0-35",
|
|
99
|
+
"@promptbook/components": "0.103.0-35",
|
|
100
|
+
"@promptbook/core": "0.103.0-35",
|
|
101
|
+
"@promptbook/deepseek": "0.103.0-35",
|
|
102
|
+
"@promptbook/documents": "0.103.0-35",
|
|
103
|
+
"@promptbook/editable": "0.103.0-35",
|
|
104
|
+
"@promptbook/fake-llm": "0.103.0-35",
|
|
105
|
+
"@promptbook/google": "0.103.0-35",
|
|
106
|
+
"@promptbook/javascript": "0.103.0-35",
|
|
107
|
+
"@promptbook/legacy-documents": "0.103.0-35",
|
|
108
|
+
"@promptbook/markdown-utils": "0.103.0-35",
|
|
109
|
+
"@promptbook/markitdown": "0.103.0-35",
|
|
110
|
+
"@promptbook/node": "0.103.0-35",
|
|
111
|
+
"@promptbook/ollama": "0.103.0-35",
|
|
112
|
+
"@promptbook/openai": "0.103.0-35",
|
|
113
|
+
"@promptbook/pdf": "0.103.0-35",
|
|
114
|
+
"@promptbook/remote-client": "0.103.0-35",
|
|
115
|
+
"@promptbook/remote-server": "0.103.0-35",
|
|
116
|
+
"@promptbook/templates": "0.103.0-35",
|
|
117
|
+
"@promptbook/types": "0.103.0-35",
|
|
118
|
+
"@promptbook/utils": "0.103.0-35",
|
|
119
|
+
"@promptbook/vercel": "0.103.0-35",
|
|
120
|
+
"@promptbook/website-crawler": "0.103.0-35",
|
|
121
|
+
"@promptbook/wizard": "0.103.0-35"
|
|
122
122
|
}
|
|
123
123
|
}
|