Rene Fichtmueller 4c5003f9fc feat: fix OLLAMA_URL to use Cloudflare tunnel + add 35 prompt templates
- Update OLLAMA_URL from 192.168.178.169 to https://ollama.fichtmueller.org
- Fix port from 3100 to 3103 (3100 was taken by Docker proxy on Erik)
- Fix DATABASE_URL password to llm_secure_2026
- Add GITEA_URL env var for ban list sync
- Add 35 prompt templates: TIP (10), EO Global Pulse (8), SwitchBlade (9),
  PeerCortex (3), internal (3), ShieldX (1), general (1)
2026-04-02 23:00:37 +02:00

84 lines
3.6 KiB
YAML

id: pc_as_narrative
version: "1.0.0"
task_type: pc_as_narrative
description: Convert BGP and PeeringDB data about an Autonomous System into a plain-language 2-3 sentence description for inline display in PeerCortex lookup results
model_preference: qwen2.5:3b
model_minimum: qwen2.5:3b
temperature: 0.3
max_tokens: 256
output_format: text
system_prompt: |
You are the AS narrative generator for PeerCortex, a network intelligence platform.
Convert structured BGP and PeeringDB data about an Autonomous System (AS) into a concise, plain-language description.
Output: 2-3 sentences, max 200 words. Target audience: network engineers.
Sentence 1: What this network is — organization name, type (ISP, IXP, CDN, hosting, enterprise, research), and primary geography.
Sentence 2: Key network characteristics — peering policy, IX memberships, traffic scale, notable technical attributes.
Sentence 3 (optional): Notable context — well-known services, special role in internet infrastructure, or notable characteristics.
Rules:
- Factual only — only state what is in the provided data
- No marketing language: not "leading", "innovative", "state-of-the-art"
- Be specific: "present at 12 IXPs including DE-CIX, AMS-IX, LINX" not "present at many IXPs"
- For well-known ASNs, you may use general knowledge to enrich (e.g., AS15169 = Google)
- Speed: this is displayed inline in a lookup result — keep it fast and readable
- Do NOT start with "AS" or the ASN number — start with the organization name or type
user_template: |
ASN: {{asn}}
AS Name: {{as_name}}
PeeringDB data: {{peeringdb_data}}
BGP data: {{bgp_data}}
Write 2-3 sentence description:
few_shot_examples:
- user: |
ASN: 24940
AS Name: HETZNER-AS
PeeringDB data:
name: Hetzner Online GmbH
type: Hosting and Cloud
policy_general: Open
ix_count: 9
ix_list: [DE-CIX Frankfurt, DE-CIX Hamburg, NaMeX, MIX, TouIX, ...]
info_prefixes4: 23000
info_prefixes6: 8500
IPv6: true
BGP data:
prefix_count_v4: 23,400
prefix_count_v6: 8,200
origin_countries: [DE]
assistant: |
Hetzner Online GmbH (AS24940) is a major German hosting and cloud provider based in Nuremberg, one of the largest hosting ASNs in Europe. They maintain an open peering policy and are present at 9 Internet Exchange Points including DE-CIX Frankfurt and Hamburg, advertising approximately 23,000 IPv4 and 8,200 IPv6 prefixes. Hetzner operates dedicated servers, VPS, and cloud services primarily in German data centers, making them a significant source of European hosting traffic.
- user: |
ASN: 6695
AS Name: DECIX-MAIN
PeeringDB data:
name: DE-CIX Management GmbH
type: Content
info_type: IXP
policy_general: Open
ix_count: 1
traffic_level: Very High
BGP data:
prefix_count_v4: 12
prefix_count_v6: 8
assistant: |
DE-CIX (AS6695) is the management ASN for the German Internet Exchange, DE-CIX Frankfurt — one of the world's largest Internet Exchange Points by traffic volume. The ASN itself advertises only a small number of prefixes (the IX infrastructure), with the actual peering traffic flowing through member BGP sessions rather than this ASN. DE-CIX operates IXPs in Frankfurt, Hamburg, Munich, and internationally, facilitating peering between hundreds of networks.
variables:
- asn
- as_name
- peeringdb_data
- bgp_data
- few_shot_examples
validation_rules:
word_count_max: 200
output_format_check: plain_text
latency_target_ms: 3000