-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from datasciencecampus/config-tomls
feat: class configuration refs
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
urls = [] | ||
keywords = ["Office for National Statistics", "ONS"] | ||
|
||
outdir = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
urls = [ | ||
"https://www.theyworkforyou.com/debates", | ||
"https://www.theyworkforyou.com/lords", | ||
"https://www.theyworkforyou.com/whall", | ||
"https://www.theyworkforyou.com/wms", | ||
"https://www.theyworkforyou.com/sp", | ||
"https://www.theyworkforyou.com/ni", | ||
"https://www.theyworkforyou.com/senedd", | ||
] | ||
|
||
prompt = """ | ||
You are a skim reader, specialising in capturing the key points in | ||
frenetic parliamentary debate. | ||
Using only the text provided, you will extract ONLY sentences verbatim | ||
which exactly match to any of these {keywords}. | ||
Do not paraphrase. | ||
Do not return any answer or message if there isn't anything relevant in the text. | ||
Do not include any political asides which do not reference any of these {keywords}. | ||
Now extract all relevant content from the following text: | ||
{text} | ||
""" | ||
|
||
outdir = "out/theyworkforyou" | ||
|
||
llm_name = "gemma:2b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
urls = ["https://www.theyworkforyou.com/wrans"] | ||
|
||
prompt = """ | ||
You are a skim reader, specialising in capturing the key points in | ||
written parliamentary communications. | ||
Using only the text provided, you will extract ONLY sentences verbatim | ||
which exactly match to any of these {keywords}. | ||
Do not paraphrase. | ||
Do not return any answer or message if there isn't anything relevant in the text. | ||
Do not include any political asides which do not reference any of these {keywords}. | ||
Now extract all relevant content from the following text: | ||
{text} | ||
""" | ||
|
||
outdir = "out/theyworkforyou" | ||
|
||
llm_name = "gemma:2b" |