{"id":49767045,"url":"https://github.com/retospect/precis-summary","last_synced_at":"2026-05-11T10:57:32.519Z","repository":{"id":343798615,"uuid":"1179202869","full_name":"retospect/precis-summary","owner":"retospect","description":"Fast extractive summarization via RAKE keyword extraction","archived":false,"fork":false,"pushed_at":"2026-04-22T09:36:49.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T10:56:57.182Z","etag":null,"topics":["document","llm","python","summarization"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/retospect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-11T19:45:34.000Z","updated_at":"2026-04-22T09:36:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/retospect/precis-summary","commit_stats":null,"previous_names":["retospect/precis-summary"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/retospect/precis-summary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fprecis-summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fprecis-summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fprecis-summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fprecis-summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retospect","download_url":"https://codeload.github.com/retospect/precis-summary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fprecis-summary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32891966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["document","llm","python","summarization"],"created_at":"2026-05-11T10:57:31.906Z","updated_at":"2026-05-11T10:57:32.515Z","avatar_url":"https://github.com/retospect.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# precis-summary\n\nFast extractive summarization via RAKE keyword extraction. Zero dependencies.\n\n## Usage\n\n```python\nfrom precis_summary import telegram_precis, pick_best_summary\n\n# RAKE keyword extraction (~5ms, zero deps)\ntext = \"Metal-organic frameworks exhibit high CO2 adsorption capacity...\"\nprecis = telegram_precis(text)\n# → \"Metal-organic frameworks; high CO2 adsorption capacity; ...\"\n\n# Pick best summary from a multi-profile dict\nsummaries = {\n    \"rake\": \"Metal-organic frameworks; high CO2 adsorption\",\n    \"llm:qwen3.5:9b\": \"MOFs show 3x CO2 uptake vs zeolites; amine-functionalized variants optimal\",\n}\nbest = pick_best_summary(summaries)\n# → \"MOFs show 3x CO2 uptake vs zeolites; amine-functionalized variants optimal\"\n```\n\n## Summary ranking\n\n`pick_best_summary()` uses prefix-priority matching:\n\n1. `llm:*` — any LLM-generated summary (best quality)\n2. `rake` — extractive RAKE keyphrases (instant, always available)\n3. Fallback — first non-empty value\n\nRanking lives in code, not in the data. New summary methods are added by\nextending `SUMMARY_PRIORITY` in `ranking.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretospect%2Fprecis-summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretospect%2Fprecis-summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretospect%2Fprecis-summary/lists"}