LanceDB Schema, Indexer Bridge, Chunking & Embedding Pipeline
┌──────────────────┬──────────────┬─────────────────────────────────────┐ │ Column │ Type │ Description │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ vector │ FixedList │ 1024-dim float32 embedding │ │ │ float32[1024]│ (mxbai-embed-large via Ollama) │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ chunk_id │ string │ UUID v4, primary key │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ chunk_text │ string │ Raw markdown text of the chunk │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ source_file │ string │ Relative path from vault root │ │ │ │ e.g. "Journal/2024-01-15.md" │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ source_directory │ string │ Top-level directory name │ │ │ │ e.g. "Journal", "Entertainment" │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ section │ string|null │ Section heading (structured notes) │ │ │ │ e.g. "#mentalhealth", "#finance" │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ date │ string|null │ ISO 8601 date parsed from filename │ │ │ │ e.g. "2024-01-15" │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ tags │ list<string> │ All hashtags in chunk │ │ │ │ e.g. ["#mentalhealth", "#therapy"] │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ chunk_index │ int32 │ Position within source document │ │ │ │ 0-indexed │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ total_chunks │ int32 │ Total chunks for this source file │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ modified_at │ string │ File mtime, ISO 8601 │ │ │ │ Used for incremental sync │ ├──────────────────┼──────────────┼─────────────────────────────────────┤ │ indexed_at │ string │ When this chunk was indexed │ │ │ │ ISO 8601 timestamp │ └──────────────────┴──────────────┴─────────────────────────────────────┘