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
docs(tutorials)📝: Update the recording prompts tutorial for better clarity and integration
- Revised the tutorial introduction to include a how-to guide format.
- Added metadata section with intents and linked files for better navigation.
- Updated import paths to reflect new module structure in llamabot.
- Changed parameter name from 'doc_paths' to 'document_paths' for consistency.
Copy file name to clipboardExpand all lines: docs/tutorials/recording_prompts.md
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,15 @@
1
-
# Automatically Record QueryBot Calls with PromptRecorder
1
+
---
2
+
intents:
3
+
- This should be a how-to guide that shows a user how the PromptRecorder in LlamaBot
4
+
works in tandem with QueryBot, specifically using it as a context manager.
5
+
- Specifically, how one sets it up, views recorded prompts and responses, and how
6
+
to display them in a Panel app.
7
+
linked_files:
8
+
- llamabot/recorder.py
9
+
- llamabot/bot/querybot.py
10
+
---
2
11
3
-
!!! note
4
-
This tutorial was written by GPT4 and edited by a human.
12
+
# Automatically Record QueryBot Calls with PromptRecorder
5
13
6
14
In this tutorial, we will learn how to use the `PromptRecorder` class to automatically record calls made to the `QueryBot`. The `PromptRecorder` class is designed to record prompts and responses, making it a perfect fit for logging interactions with the `QueryBot`.
7
15
@@ -23,8 +31,8 @@ pip install pandas panel
23
31
First, we need to import the `PromptRecorder` and `QueryBot` classes from their respective source files. You can do this by adding the following lines at the beginning of your script:
0 commit comments