You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance Promptix with Conversation Memory and Logging Support
- Add conversation memory support in README examples
- Integrate logging utility in storage utils
- Improve PromptManager to dynamically detect storage file format
- Add blog links to README for more context
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -148,10 +148,16 @@ system_instruction = (
148
148
from openai import OpenAI
149
149
client = OpenAI()
150
150
151
+
# Example conversation history
152
+
memory = [
153
+
{"role": "user", "content": "Can you help me with my last transaction ?"}
154
+
]
155
+
151
156
openai_config = (
152
157
Promptix.builder("CustomerSupport")
153
158
.with_customer_name("Jordan Smith")
154
159
.with_issue("billing question")
160
+
.with_memory(memory)
155
161
.for_client("openai")
156
162
.build()
157
163
)
@@ -181,18 +187,28 @@ Generate consistent but customizable content with prompts that:
181
187
- Maintain brand voice while allowing flexibility
182
188
- Include relevant reference materials based on topic
183
189
190
+
Read more about the design principles behind Promptix in [Why I Created Promptix: A Local-First Approach to Prompt Management](https://nisarg38.github.io/Portfolio-Website/blog/blogs/promptix-01).
191
+
192
+
For a detailed guide on how to use Promptix, see [How to Use Promptix: A Developer's Guide](https://nisarg38.github.io/Portfolio-Website/blog/blogs/promptix-02).
193
+
184
194
## 🧪 Advanced Usage
185
195
186
196
### Custom Tools Configuration
187
197
188
198
```python
199
+
# Example conversation history
200
+
memory = [
201
+
{"role": "user", "content": "Can you help me understand Python decorators?"}
202
+
]
203
+
189
204
# Configure specialized tools for different scenarios
0 commit comments