zotero-literature-visualizer 是做什么的?
A Codex skill for Zotero-based literature organization and visualization, supporting paper discovery, full-text download, Zotero PDF reading, automatic classification and summarization, and generation of bilingual interactive literature dashboards.
Features
- Literature Discovery: Search and retrieve papers from Zotero library or external sources.
- Full-Text Download: Automated download of PDFs for matched papers.
- Zotero PDF Direct Reading: Extract and read text from PDFs stored in Zotero.
- Automatic Classification & Summarization: Categorize papers by topic and generate bilingual (Chinese/English) summaries.
- Interactive Dashboard: Generate a web-based dashboard to visualize and explore your literature collection.
Usage
Invoke the skill through Codex by providing a query or specifying your Zotero collection path. The skill will process your library and produce a dashboard.
Example
codex run xuezheng627/zotero-literature-visualizer --input "my zotero library"
Requirements
- Codex AI agent environment
- Local Zotero database (sqlite) and PDF storage
- Python 3.8+ with packages: pandas, plotly, beautifulsoup4, pdfplumber, openai (for summaries)
How It Works
- Connects to your local Zotero SQLite database.
- Retrieves paper metadata (title, authors, date, tags, abstract, etc.).
- Downloads missing PDFs if full-text is required.
- Reads PDF content using
pdfplumber. - Classifies papers using tag analysis or LLM-based topic modeling.
- Generates bilingual summaries (via OpenAI API or local model).
- Builds an interactive Plotly/Dash dashboard and saves it as an HTML file.
Output
literature_dashboard.html: Interactive dashboard with filters, charts, and search.summaries.json: Bilingual summaries for each paper.
Configuration
Set environment variables as needed:
export OPENAI_API_KEY="sk-..." # Required for LLM-based summarization
export ZOTERO_DATA_DIR="/path/to/zotero/data" # Optional, overrides default
License
MIT