Files
wehub-resource-sync c3749daf48
Tests / test-linux (3.13) (push) Failing after 0s
Tests / test-linux (3.11) (push) Failing after 1s
Tests / lint (push) Failing after 0s
Tests / test-linux (3.9) (push) Failing after 1s
Docker / build (push) Failing after 1s
Docker / build-gpu (push) Failing after 2s
Tests / test-windows (push) Has been cancelled
Tests / test-macos (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:03:03 +08:00

19 lines
523 B
Python

"""Entity extraction prompts. Output is JSON; we use json_mode=True."""
from __future__ import annotations
SYSTEM = """You extract entities from text. Return ONLY valid JSON in this exact shape:
{"entities": [{"name": "...", "type": "..."}]}
Entity types are limited to: person, project, place, organization.
Do not invent entities not in the text. Do not include common nouns or generic concepts. Only proper-noun entities."""
def build_user(text: str) -> str:
return f"""Text:
{text}
Extract all entities."""