Skip to content

Add support for documents, PDFs, and images #542

Open

Description

@nellins

Feature Request

Add native support for non-text file types including documents, PDFs, and images to Basic Memory.

Problem

Currently, Basic Memory is optimized for plain text and Markdown files. Users working with research papers, documentation, screenshots, diagrams, and other visual/document content need to manually extract or describe the content before it can be incorporated into their knowledge base.

Proposed Solution

Enable Basic Memory to:

  1. Accept and store documents (PDF, DOCX, etc.) and images (PNG, JPG, etc.)
  2. Extract text content from PDFs and documents for indexing and search
  3. Process images with OCR or vision models to make visual content searchable
  4. Maintain original files alongside extracted/processed content
  5. Create automatic connections between documents/images and related notes

Use Cases

  • Research: Import academic papers (PDFs) and automatically extract key concepts, connect to related notes
  • Documentation: Save screenshots of code, errors, or UI designs with automatic text extraction
  • Learning: Store textbook pages, diagrams, and visual materials as part of knowledge graph
  • Work notes: Import meeting notes from various formats, connect to project documentation

Implementation Considerations

  • File storage strategy (local vs cloud bucket, size limits)
  • Text extraction pipeline (PDF parsing, OCR for images)
  • Vision model integration for image understanding
  • Metadata extraction (authors, dates, titles from PDFs)
  • Search indexing for extracted content
  • UI for viewing/previewing non-text files
  • Cost implications for processing (OCR, vision models)

Benefits

  • Complete knowledge capture (text + visual + documents)
  • Reduced friction in knowledge building workflow
  • Better support for academic/research use cases
  • Richer semantic connections across all content types

Activity

  1. claude commented on Feb 4, 2026

    @claude
    Contributor

    Claude finished @nellins's task in 1m 26s —— View job


    Issue Triage Analysis

    • Search for duplicate issues
    • Classify issue type, priority, component, and complexity
    • Apply appropriate GitHub labels
    • Provide triage analysis and recommendations

    Classification

    Type: Feature Request / Enhancement
    Priority: Medium
    Complexity: Complex
    Component: MCP tools, Database/Storage, CLI

    Analysis

    This is a well-structured feature request proposing native support for non-text file types (PDF, DOCX, images). Here's my assessment:

    Strengths of the Request:

    • Clear problem statement and proposed solution
    • Concrete use cases (research, documentation, learning)
    • Thoughtful implementation considerations identified
    • Recognizes cost/complexity implications

    Key Technical Challenges:

    1. Storage Architecture

      • Current system: Markdown files as source of truth, SQLite for indexing
      • New requirement: Binary file storage alongside text extraction
      • Decision needed: Local filesystem vs cloud storage, size limits, deduplication
    2. Text Extraction Pipeline

      • PDF parsing (PyPDF2, pdfplumber, or similar)
      • OCR for images (Tesseract, cloud vision APIs)
      • Document parsing (python-docx for DOCX, etc.)
      • Quality/accuracy considerations for search indexing
    3. Vision Model Integration

      • Image understanding beyond OCR (diagrams, charts, screenshots)
      • Cost implications (API calls to Claude/GPT-4V or local models)
      • Privacy considerations for cloud processing
    4. Schema Changes

      • File type metadata
      • Original file path + extracted content relationship
      • Versioning/sync implications for binary files
    5. MCP Tool Changes

      • read_note() needs to handle binary files (already has read_content() for raw files)
      • New tools for document/image processing?
      • Search needs to index extracted content

    Implementation Scope:

    This is a complex, multi-phase feature that would significantly expand Basic Memory's scope:

    • Phase 1: Basic PDF text extraction and storage
    • Phase 2: Image OCR support
    • Phase 3: Vision model integration for semantic understanding
    • Phase 4: Additional document formats (DOCX, etc.)

    Recommended Next Steps:

    1. Clarify Scope: Would you like to start with a minimal viable version (e.g., PDF text extraction only)?
    2. Storage Strategy: Preference for local-only, cloud-only, or hybrid storage?
    3. Processing Approach: Client-side processing vs server-side (cost/privacy tradeoff)?
    4. Use Case Priority: Which use case is most important to you? (Research papers, screenshots, documents, etc.)

    Related Considerations:

    • Subscription tier: This might be a premium feature due to processing costs
    • File size limits: Reasonable limits to prevent abuse and manage storage
    • Batch processing: Efficient handling of multiple documents
    • Search quality: Ensuring extracted text is properly indexed and searchable

    Labels Applied

    • enhancement ✓

    No duplicates found - this is a novel feature request for the project.


    This is an excellent feature request that would significantly enhance Basic Memory's capabilities for knowledge workers and researchers. However, it represents a substantial architectural expansion. I recommend starting with a focused MVP (e.g., PDF text extraction) and iterating based on user feedback.

    Would you like me to help scope out a Phase 1 implementation plan, or do you have questions about any of the technical considerations?

  2. added
    enhancement
    on Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions