A local-first workspace for thesis writing and literature review.
Index your Zotero PDFs, ask cited questions over your own library, compare models, draft with evidence, and keep AI usage logs for disclosure — all on your machine.
This app runs locally in your browser after setup. Here is what the Web UI looks like:
Dashboard — ask your library from one place
Ask Library — citation-aware Q&A over indexed papers
Index setup — connect Zotero and build a local search index
git clone https://github.com/femrebora/research-assistant.git
cd research-assistant
bash scripts/setup.sh
bash scripts/install_cli.sh
source ~/.bashrc
raOpen http://127.0.0.1:5050 if the browser does not open on its own.
| Command | What it does |
|---|---|
ra |
Start or reopen the app |
ra stop |
Stop the background server |
ra doctor |
Check common setup issues |
| Feature | What it does |
|---|---|
| Zotero RAG | Index local Zotero PDFs and retrieve relevant chunks |
| Ask Library | Ask cited questions, ask without context, or compare models |
| Paper Discovery | Search OpenAlex, Semantic Scholar, and Elicit |
| Writing Studio | Outline, draft, critique, paraphrase, and check coherence |
| Projects & Workspace | Keep each thesis or manuscript organized |
| Claim Verification | Check whether draft claims match retrieved evidence |
| PaperForge | Multi-agent workflow for academic paper drafts |
| AI Disclosure | Save model usage logs and generate disclosure text |
- Python 3.11+
- A bash-compatible shell
- Zotero (recommended for citation-aware work)
- At least one model provider (API key, Ollama, or CLI tool)
You do not need every API key. One working provider is enough to start.
After opening the Web UI:
- Settings (
/settings) — add at least one API key or CLI provider - Providers (
/providers) — test the models you want to use - Settings — confirm
THESIS_ROOTandZOTERO_STORAGE - Index setup (
/index-setup) — scan and index your Zotero PDFs - Projects (
/projects) — create your thesis or manuscript project - Ask Library (
/ask-library) — ask a small test question
Add keys in .env or from /settings:
ANTHROPIC_API_KEY=sk-ant-your-key
GEMINI_API_KEY=your-gemini-key
DEEPSEEK_API_KEY=sk-your-deepseek-key
OPENAI_API_KEY=sk-your-openai-keyThen restart:
ra restartOptional local models with Ollama:
ollama pull llama3.3
OLLAMA_MODEL=ollama/llama3.3ZOTERO_STORAGE=/home/yourname/Zotero/storage
ZOTERO_USER_ID=1234567
ZOTERO_API_KEY=your-zotero-api-keyGet your user ID and API key at zotero.org/settings/keys.
ZOTERO_STORAGE must point to the folder that contains attachment subfolders (for example ~/Zotero/storage), not a single paper folder.
Then open /index-setup and run the scan and indexing steps.
Default workspace: ~/thesis
| Output | Location |
|---|---|
| Drafts, notes, evidence | ~/thesis/projects/<project>/ |
| Research sessions | ~/thesis/research_sessions/ |
| Vector index | ~/thesis/chroma_db/ |
| AI usage logs | ~/thesis/logs/ |
| App settings | ./.env in the repo |
| Server log | ~/.local/share/research-assistant/research-assistant.log |
# App control
ra
ra stop
research-assistant restart
research-assistant doctor
# Research
ra-researcher ask "What are the main mechanisms of TRAIL resistance?"
ra-researcher index
ra-compare "Compare these mechanisms across models"
ra-discover "metabolic rewiring glioblastoma" --source openalex
# Writing
ra-outline-recommender
ra-critique draft.md
ra-claim-verify draft.md
ra-discloseOr with npm:
npm run setup && npm run start
npm run doctor
npm run test- Your drafts, indexes, sessions, and logs stay local by default.
- API model calls may send prompts to external providers.
- Verify claims against original papers before using generated text.
- Follow your institution’s AI disclosure rules.
- Never commit
.env, private drafts, or unpublished manuscripts.
git pull
bash scripts/setup.sh
bash scripts/install_cli.sh
ra restart- docs/USAGE.md — daily workflow and troubleshooting
- docs/FAQ.md — common questions
- docs/ARCHITECTURE.md — how the project is organized
- CONTRIBUTING.md — how to contribute
MIT. See LICENSE.




