Skip to content

#413 Lazy embedding -- defer to first brain query #416

Closed

Description

@ajianaz

Problem

brain::embed_project() runs as part of cora index, embedding ALL symbols even if cora brain is never used.

Location

src/index/mod.rs:273

Solution

  1. Remove from index flow
  2. Call lazily on first cora brain
  3. Track embedding state per project
  4. Only embed new/changed symbols (incremental)

Expected Impact

Index time: -50%. Brain first query slightly slower (~100ms one-time).

Activity

  1. ajianaz commented on Jul 28, 2026

    @ajianaz
    CollaboratorAuthor

    Meta-tracker. Sub-issue #413 (lazy embedding) deferred to phase-3/4. Closing parent.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions