python scenarios.py
python json.py
python format.py
python hugging_face.py
Generate crime scenarios using the scenarios.py
script. Modify the SYSTEM_MESSAGE
variable to change the prompt.
Extract entities from the scenarios using the json.py
script.
Format the JSON output into a JSONL file using the format.py
script.
Upload the JSONL file to Hugging Face using the hugging_face.py
script.
python
pip
huggingface-cli
boto3
datasets
huggingface_hub
You should have an AWS account with the necessary permissions to use Amazon Bedrock. You should have authenticated with AWS SSO using the aws configure
command. Alternatively, you can use another LLM provider.