← Về thư mục
skills/research-lookup/scripts/manuscript_packet.py
- canonicalize_url · function · L99-L113 — def canonicalize_url(url: str) -> str
- normalize_title · function · L116-L118 — def normalize_title(title: str) -> str
- source_text · function · L121-L130 — def source_text(source: dict[str, Any]) -> str
- extract_doi · function · L133-L138 — def extract_doi(text: str) -> str
- extract_pmid · function · L141-L144 — def extract_pmid(text: str) -> str
- extract_year · function · L147-L154 — def extract_year(source: dict[str, Any], text: str) -> str
- extract_label · function · L157-L165 — def extract_label(text: str, labels: Iterable[str]) -> str
- split_sentences · function · L168-L174 — def split_sentences(text: str) -> list[str]
- classify_publication · function · L177-L183 — def classify_publication(text: str) -> str
- evidence_quality · function · L186-L201 — def evidence_quality( publication_type: str, *, preprint: bool, retracted: bool ) -> tuple[str, str]
- relevance_tags · function · L204-L222 — def relevance_tags(text: str, publication_type: str) -> list[str]
- _host · function · L225-L226 — def _host(url: str) -> str
- is_scholarly_url · function · L229-L231 — def is_scholarly_url(url: str) -> bool
- is_preprint_url · function · L234-L236 — def is_preprint_url(url: str) -> bool
- deduplicate_sources · function · L239-L291 — def deduplicate_sources(sources: Iterable[dict[str, Any]]) -> list[dict[str, Any]]
- normalize_reference · function · L294-L387 — def normalize_reference(source: dict[str, Any], index: int) -> dict[str, Any]
- reference_score · function · L390-L413 — def reference_score(reference: dict[str, Any]) -> tuple[int, int, int, int]
- _claim_map · function · L416-L430 — def _claim_map(references: list[dict[str, Any]]) -> list[dict[str, Any]]
- _synthesis · function · L433-L472 — def _synthesis(references: list[dict[str, Any]]) -> dict[str, Any]
- _section_briefs · function · L475-L509 — def _section_briefs(references: list[dict[str, Any]]) -> dict[str, Any]
- _coverage · function · L512-L561 — def _coverage( references: list[dict[str, Any]], target_references: int ) -> dict[str, Any]
- build_manuscript_packet · function · L564-L611 — def build_manuscript_packet( *, query: str, sources: list[dict[str, Any]], search_ledger: list[dict[str, Any]], target_references: int = 60, manuscript_context: dict[str, Any] | None = None, ) -> dict[str, Any]
- citation_text · function · L614-L627 — def citation_text(reference: dict[str, Any]) -> str
- packet_markdown · function · L630-L685 — def packet_markdown(packet: dict[str, Any]) -> str
- bibtex_text · function · L688-L716 — def bibtex_text(references: list[dict[str, Any]]) -> str
- save_packet · function · L719-L754 — def save_packet(packet: dict[str, Any], directory: str | Path) -> dict[str, str]