- A program that will retrieve the latest FIA document file, summarize it using AI, then sends it to a Discord channel using webhook.
- Note: This program will only summarize and send documents that are considered
"Summons", "Decision", "Infringement"
.
- Python
- Ollama (optional)
- Run using docker once to allow for config file creation
docker run -v /path/on/local:/app/config -p 8080:8080 ghcr.io/sfn-git/fia_doc_webhook:latest
- Navigate to the web ui at port 8080
- Install python dependencies requirements.txt
pip install -r requirements.txt
- Run
main.py
oncepython main.py
- Navigate to the web ui at port 8080
DISCORD_WEBHOOK_URL
- An array of webhook URLs to allow for the program to send to multiple channels.
OLLAMA_URL
(optional)- If not skipping summary, the link to your ollama instance
OLLAMA_MODEL
(optional)- Model you will use to summarize the pdf content
- Built in scheduler allows you to customize how often you would like to check the FIA documents website for a new document to process.
- Use cron syntax to set the timing for a specific job.
- To disable a job, simply make the cron string invalid (Example:
-* * * * *
)