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
Closes#872
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Fixes and updates quick start examples in `README.md`, including
search query count, API placeholders, and workflow steps.
>
> - **Quick Example**:
> - Change number of search queries from 100 to 30.
> - Update `api_key` and `url` placeholders in `tools` section.
> - Modify `main` workflow steps for clarity and accuracy, including
`prompt`, `evaluate`, and `tool` steps.
> - **Misc**:
> - Add `num_questions` to `input_schema`.
> - Adjust `parallelism` from 10 to 5 in web search step.
> - Limit Discord message content to 2000 characters.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup>
for 7063583. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
Copy file name to clipboardExpand all lines: README.md
+60-60
Original file line number
Diff line number
Diff line change
@@ -28,14 +28,12 @@
28
28
---
29
29
30
30
> [!NOTE]
31
-
> 👨💻 Here for the devfest.ai event? Join our [Discord](https://discord.com/invite/JTSBGRZrzj) and check out the details below.
32
-
>
33
31
> Get your API key [here](https://dashboard-dev.julep.ai).
34
32
35
33
<details>
36
-
<summary><b>🌟 Contributors and DevFest.AI Participants</b> (Click to expand)</summary>
34
+
<summary><b>Contributions 🌟</b> (Click to expand)</summary>
37
35
38
-
## 🌟 Call for Contributors!
36
+
## Call for Contributors 🌟
39
37
40
38
We're excited to welcome new contributors to the Julep project! We've created several "good first issues" to help you get started. Here's how you can contribute:
41
39
@@ -45,41 +43,34 @@ We're excited to welcome new contributors to the Julep project! We've created se
45
43
46
44
Your contributions, big or small, are valuable to us. Let's build something amazing together! 🚀
47
45
48
-
### 🎉 DevFest.AI October 2024
49
-
50
-
Exciting news! We're participating in DevFest.AI throughout October 2024! 🗓️
51
-
52
-
- Contribute to Julep during this event and get a chance to win awesome Julep merch and swag! 🎁
53
-
- Join developers from around the world in contributing to AI repositories and participating in amazing events.
54
-
- A big thank you to DevFest.AI for organizing this fantastic initiative!
55
-
56
-
> [!TIP]
57
-
> Ready to join the fun? **[Tweet that you are participating](https://twitter.com/intent/tweet?text=Pumped%20to%20be%20participating%20in%20%40devfestai%20with%20%40julep_ai%20building%20%23ai%20%23agents%20%23workflows%20Let's%20gooo!%20https%3A%2F%2Fgit.new%2Fjulep)** and let's get coding! 🖥️
Generate 100 diverse search queries related to the topic:
188
-
{{inputs[0].topic}}
177
+
- prompt:
178
+
- role: system
179
+
content: >-
180
+
You are a research assistant.
181
+
Generate {{inputs[0].num_questions|default(30, true)}} diverse search queries related to the topic:
182
+
{{inputs[0].topic}}
189
183
190
-
Write one query per line.
191
-
unwrap: true
184
+
Write one query per line.
185
+
unwrap: true
192
186
193
-
# Evaluate the search queries using a simple python expression
194
-
- evaluate:
195
-
search_queries: "_.split('\n')"
187
+
# Evaluate the search queries using a simple python expression
188
+
- evaluate:
189
+
search_queries: "_.split(NEWLINE)"
196
190
197
-
# Run the web search in parallel for each query
198
-
- over: "_.search_queries"
199
-
map:
200
-
tool: web_search
201
-
arguments:
202
-
query: "_"
203
-
parallelism: 10
191
+
# Run the web search in parallel for each query
192
+
- over: "_.search_queries"
193
+
map:
194
+
tool: web_search
195
+
arguments:
196
+
query: "_"
197
+
parallelism: 5
204
198
205
-
# Collect the results from the web search
206
-
- evaluate:
207
-
results: "'\n'.join([item.result for item in _])"
199
+
# Collect the results from the web search
200
+
- evaluate:
201
+
search_results: _
208
202
209
-
# Summarize the results
210
-
- prompt:
211
-
- role: system
212
-
content: >
213
-
You are a research summarizer. Create a comprehensive summary of the following research results on the topic {{inputs[0].topic}}.
214
-
The summary should be well-structured, informative, and highlight key findings and insights:
215
-
{{_.results}}
216
-
unwrap: true
217
-
settings:
218
-
model: gpt-4o-mini
203
+
# Summarize the results
204
+
- prompt:
205
+
- role: system
206
+
content: >
207
+
You are a research summarizer. Create a comprehensive summary of the following research results on the topic {{inputs[0].topic}}.
208
+
The summary should be well-structured, informative, and highlight key findings and insights. Keep the summary concise and to the point.
209
+
The length of the summary should be less than 150 words.
210
+
Here are the search results:
211
+
{{_.search_results}}
212
+
unwrap: true
213
+
settings:
214
+
model: gpt-4o-mini
219
215
220
-
# Send the summary to Discord
221
-
- tool: discord_webhook
222
-
arguments:
223
-
content: |-
224
-
f'''
225
-
**Research Summary for {inputs[0].topic}**
216
+
- evaluate:
217
+
discord_message: |-
218
+
f'''
219
+
**Research Summary for {inputs[0].topic}**
220
+
{_}
221
+
'''
226
222
227
-
{_}
228
-
'''
223
+
# Send the summary to Discord
224
+
- tool: discord_webhook
225
+
arguments:
226
+
json_:
227
+
content: _.discord_message[:2000] # Discord has a 2000 character limit
229
228
```
230
229
231
230
In this example, Julep will automatically manage parallel executions, retry failed steps, resend API requests, and keep the tasks running reliably until completion.
@@ -331,6 +330,7 @@ description: Create a story based on an idea.
0 commit comments