Skip to content

Commit 9cce7c0

Browse files
committed
Updated README
1 parent c970a2d commit 9cce7c0

2 files changed

Lines changed: 92 additions & 1 deletion

File tree

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,45 @@ The JSON file should be an array of job objects:
7575
]
7676
```
7777

78+
### View Last Results
79+
80+
To view the last `n` results processed by the worker:
81+
82+
```
83+
dpr --mode=view --n=20
84+
```
85+
86+
87+
### View Groups
88+
89+
List all groups created in the system:
90+
91+
```
92+
dpr --mode=view --total-groups
93+
```
94+
95+
### View results for a specific group by its ID
96+
97+
```
98+
dpr --mode=view --group=1
99+
```
100+
101+
### View Queued Jobs
102+
103+
```
104+
dpr --mode=queue --action=view --queue-n=20
105+
```
106+
107+
### Clear Queued Jobs
108+
109+
```
110+
dpr --mode=queue --action=clear
111+
```
112+
113+
114+
115+
116+
78117
## Useful Ollama Commands
79118

80119
- **Run Ollama server:**
@@ -115,4 +154,9 @@ The JSON file should be an array of job objects:
115154

116155
- The `.dprompts.toml` file **must** be placed in your home directory.
117156
- You can customize job arguments and metadata using the `--args` and `--metadata` flags (as JSON).
118-
- The worker will process jobs and store results in the configured PostgreSQL database.
157+
- The worker will process jobs and store results in the configured PostgreSQL database.
158+
- **PostgreSQL Storage Details:**
159+
- `dprompt_results` — stores the results of processed jobs.
160+
- `dprompt_groups` — stores job groups with unique `group_name` and `id`.
161+
- Groups are a way to organize related jobs that work toward the same goal.
162+
- This makes it easy to view or analyze all jobs related to a single goal together.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
{
3+
"args": {
4+
"prompt": "Explain the difference between TCP and UDP.",
5+
"group_name": "networking_basics"
6+
},
7+
"metadata": {
8+
"type": "test",
9+
"category": "networking",
10+
"filename": "tcp_udp.md"
11+
}
12+
},
13+
{
14+
"args": {
15+
"prompt": "What is a subnet mask and why is it important?",
16+
"group_name": "networking_basics"
17+
},
18+
"metadata": {
19+
"type": "test",
20+
"category": "networking",
21+
"filename": "subnet_mask.md"
22+
}
23+
},
24+
{
25+
"args": {
26+
"prompt": "How do you reverse a linked list in Python?",
27+
"group_name": "python_algorithms"
28+
},
29+
"metadata": {
30+
"type": "test",
31+
"category": "python",
32+
"filename": "reverse_linked_list.md"
33+
}
34+
},
35+
{
36+
"args": {
37+
"prompt": "Explain Python's list comprehension with examples.",
38+
"group_name": "python_algorithms"
39+
},
40+
"metadata": {
41+
"type": "test",
42+
"category": "python",
43+
"filename": "list_comprehension.md"
44+
}
45+
}
46+
]
47+

0 commit comments

Comments
 (0)