Skip to main content

AI-powered academic paper synthesis tool

Project description

LitAI

AI-powered literature review assistant that understands your research questions and automatically finds papers, extracts insights, and synthesizes findings - all through natural conversation.

Why LitAI?

LitAI accelerates your research by turning hours of paper reading into minutes of focused insights:

  • Find relevant papers fast: Natural language search across millions of papers
  • Extract key insights: AI reads papers and pulls out claims with evidence
  • Synthesize findings: Ask questions across multiple papers and get cited answers
  • Build your collection: Manage PDFs locally with automatic downloads from ArXiv

Perfect for:

  • Literature reviews for research papers
  • Understanding a new field quickly
  • Finding solutions to technical problems
  • Discovering contradictions in existing work
  • Building comprehensive reading lists

💡 Tip: Use the /questions command to see research unblocking questions organized by phase - from debugging experiments to contextualizing results.

Installation

Prerequisites

  • Python 3.11 or higher
  • API key for OpenAI or Anthropic

Install with pip or uv

# Using pip
pip install litai-research

# Using uv (faster)
uv pip install litai-research

Updates

# Stable updates
pip install --upgrade litai-research
uv pip install --upgrade litai-research

# Development/pre-release updates  
pip install --upgrade --pre litai-research
uv pip install --upgrade --pre litai-research

Configuration

Set your API key as an environment variable:

# For OpenAI
export OPENAI_API_KEY=sk-...

# For Anthropic
export ANTHROPIC_API_KEY=sk-ant-...
Advanced Configuration

Configure LitAI using the /config command:

# Show current configuration
/config show

# Set provider and model
/config set llm.provider openai
/config set llm.model gpt-4o-mini

# Reset to auto-detection
/config reset

Configuration is stored in ~/.litai/config.json and persists across sessions.

Getting Started

1. Launch LitAI

litai

2. Set Up Your Research Context (Recommended)

Provide context about your research to get more tailored responses:

/prompt

This opens your default editor with a template where you can describe:

  • Research Context: Your area of study and current focus
  • Background & Expertise: Your academic/professional background
  • Specific Interests: Particular topics, methods, or problems you're investigating
  • Preferences: How you prefer information to be presented or synthesized

Example research context:

## Research Context
I'm a PhD student researching efficient transformer architectures for edge deployment. Currently focusing on knowledge distillation and pruning techniques for large language models.

## Background & Expertise
- Strong background in deep learning and PyTorch
- Experience with model compression techniques
- Familiar with transformer architectures and attention mechanisms

## Specific Interests
- Structured pruning methods that maintain model accuracy
- Hardware-aware neural architecture search
- Quantization techniques for transformers

## Preferences
- When synthesizing papers, please highlight actual compression ratios achieved
- I prefer concrete numbers over vague claims
- Interested in both positive and negative results

Why this matters: This context gets automatically included in every AI conversation, helping LitAI understand your expertise level and tailor responses accordingly. Without it, LitAI treats every user the same way.

3. Understanding LitAI's Two Modes

Normal Mode - Build your research context:

normal  "Find papers about attention mechanisms"
normal  "Add the Transformer paper to my collection"  
normal  /papers                    # View your collection
normal  /note 1                    # Add personal notes
normal  /tag 1 -a transformers     # Organize with tags

Synthesis Mode - Ask questions and analyze:

normal  /synthesize                # Enter synthesis mode
synthesis  "What are the key findings across my transformer papers?"
synthesis  "How do attention mechanisms work?"
synthesis  "Compare BERT vs GPT architectures" 
synthesis  "Go deeper on the mathematical foundations"
synthesis  exit                    # Return to normal mode

The Workflow:

  1. Normal Mode: Search, collect, and organize papers
  2. Synthesis Mode: Ask research questions and get AI analysis
  3. Switch freely: /synthesize to enter, exit to return

4. Build Your Research Workflow

For New Research Areas:

  1. Normal Mode: "Find recent papers about [topic]" + "Add the most cited papers"
  2. Synthesis Mode: "What are the main approaches in this field?" + follow-up questions

For Literature Reviews:

  1. Normal Mode: Build collection, add notes (/note), organize with tags (/tag)
  2. Synthesis Mode: "Compare methodologies across my papers" + deep analysis questions

For Keeping Current:

  1. Normal Mode: /questions → See research-unblocking prompts by phase
  2. Synthesis Mode: Regular Q&A sessions to connect new papers to existing work

Key Insight: Normal mode = building context, Synthesis mode = asking questions

Features

🔍 Paper Discovery & Management

  • Smart Search: Natural language queries across millions of papers via Semantic Scholar
  • Intelligent Collection: Automatic duplicate detection and citation key generation
  • PDF Integration: Automatic ArXiv downloads with local storage
  • Flexible Organization: Tags, notes, and configurable paper list views
  • Import Support: BibTeX file import for existing libraries

🤖 AI-Powered Analysis

  • Key Point Extraction: Automatically extract main claims with evidence
  • Deep Synthesis: Interactive synthesis mode for collaborative exploration
  • Context-Aware: Multiple context depths (abstracts, notes, key points, full text)
  • Agent Notes: AI-generated insights and summaries for papers
  • Research Context: Personal research profile for tailored responses

💬 Interactive Experience

  • Natural Language Interface: Chat naturally about your research
  • Command Autocomplete: Tab completion for all commands and file paths
  • Vi Mode Support: Optional vi-style keybindings
  • Session Management: Persistent conversations with paper selections
  • Research Questions: Built-in prompts to unblock research at any phase

⚙️ Advanced Features

  • Configurable Display: Customize paper list columns and layout
  • Tool Approval System: Control AI tool usage in synthesis mode
  • Comprehensive Logging: Debug and track all operations
  • Multi-LLM Support: OpenAI and Anthropic models with auto-detection

Command Reference

Essential Commands

/find <query>          # Search for papers  
/add <numbers>         # Add papers from search results
/papers [page]         # List your collection (with pagination)
/synthesize            # Enter interactive synthesis mode
/note <number>         # Manage paper notes
/tag <number> -a <tags>  # Add tags to papers
/prompt                # Set up your research context (recommended)
/questions             # Show research-unblocking prompts
/help                  # Show all commands

Papers Command Options

/papers --tags         # Show all tags with counts
/papers --notes        # Show papers with notes
/papers 2              # Show page 2 of collection

Research Context Commands

/prompt                # Edit your research context (opens in editor)
/prompt view           # Display your current research context
/prompt append "text"  # Add text to your existing context
/prompt clear          # Delete your research context

Configuration

/config show           # Display current settings
/config set llm.model gpt-4o-mini
/config set synthesis.tool_approval false
/config set display.list_columns title,authors,tags,notes

Note: Configuration changes require restarting LitAI to take effect

Normal Mode vs Synthesis Mode

Normal Mode - Context building and management:

/find <query>          # Search for papers  
/add <numbers>         # Add papers from search results
/papers [page]         # List your collection
/note <number>         # Add your personal notes
/tag <number> -a <tags>  # Add tags to papers
/synthesize            # Enter synthesis mode

Synthesis Mode - Question answering and analysis:

synthesis  "What are the key insights from paper X?"
synthesis  "How do these approaches compare?"
synthesis  "Go deeper on the methodology"
synthesis  "Add AI notes to paper 1"     # Ask AI to generate analysis notes
synthesis  /papers                       # Show full collection
synthesis  /selected                     # Show papers in current session  
synthesis  /context key_points           # Change context depth
synthesis  /clear                        # Clear session (keep selected papers)
synthesis  exit                          # Return to normal mode

Notes System

  • Personal Notes (/note in normal mode): Your own thoughts and observations
  • AI Notes (request in synthesis mode): Ask AI to generate insights and summaries for papers

Data Storage

LitAI stores all data locally in ~/.litai/:

  • litai.db - SQLite database with paper metadata and extractions
  • pdfs/ - Downloaded PDF files
  • logs/litai.log - Application logs for debugging
  • config.json - User configuration
  • user_prompt.txt - Personal research context

FAQ

Why do paper searches sometimes fail?

Semantic Scholar's public API can experience high load, leading to search failures. If you encounter frequent issues:

License

This project is open source and available under the MIT License.

Acknowledgments

Support

  • Report issues: GitHub Issues
  • Logs for debugging: ~/.litai/logs/litai.log

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litai_research-0.1.3.dev202508101123.tar.gz (105.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litai_research-0.1.3.dev202508101123-py3-none-any.whl (88.2 kB view details)

Uploaded Python 3

File details

Details for the file litai_research-0.1.3.dev202508101123.tar.gz.

File metadata

File hashes

Hashes for litai_research-0.1.3.dev202508101123.tar.gz
Algorithm Hash digest
SHA256 a5057e662a4f6c98cdd4ee71c50bdc78c973a94e144fc878228238b3d869aecb
MD5 ca2436e818a691a32dd1c4ac0b966b88
BLAKE2b-256 c8375d221de5b2b34139eb64446b6d6b93196ec2462dab1af76c231ffc4dede1

See more details on using hashes here.

File details

Details for the file litai_research-0.1.3.dev202508101123-py3-none-any.whl.

File metadata

File hashes

Hashes for litai_research-0.1.3.dev202508101123-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a7d9b3661e631a5bd2903339e8a440354ed184c0822189f459950c5a46f9de
MD5 52a184a0ee5e478d46519be1e5c2bc04
BLAKE2b-256 cffb844eb54da5fe43abe29c76be1eae2eee8da863a9dd08cd3c3ec339e63cac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page