Skip to content

Commit

Permalink
Merge pull request #8 from datasciencecampus/config-tomls
Browse files Browse the repository at this point in the history
feat: class configuration refs
  • Loading branch information
Edward-Jackson-ONS authored Aug 15, 2024
2 parents 2903a7d + a789b86 commit bd463e1
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parliai_public/_config/base.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
urls = []
keywords = ["Office for National Statistics", "ONS"]

outdir = ""
27 changes: 27 additions & 0 deletions src/parliai_public/_config/debates.toml
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"
19 changes: 19 additions & 0 deletions src/parliai_public/_config/wrans.toml
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"

0 comments on commit bd463e1

Please sign in to comment.