-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
script({ | ||
title: "summary of summary - phi3", | ||
}) | ||
|
||
// summarize each files individually | ||
for (const file of env.files) { | ||
const { text } = await runPrompt( | ||
(_) => { | ||
_.def("FILE", file) | ||
_.$`Summarize the FILE and respond in plain text with one paragraph. Be consice. Ensure that summary is consistent with the content of FILE.` | ||
}, | ||
{ model: "ollama:phi3", cacheName: "summary_phi3" } | ||
) | ||
def("FILE", { ...file, content: text }) | ||
} | ||
// use summary | ||
$`Summarize all the FILE.` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Questions | ||
|
||
- What is weather in Seattle? | ||
- What laws were voted in the USA congress last week? |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.