Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kapillamba4/code-memory
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.25
Choose a base ref
...
head repository: kapillamba4/code-memory
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.27
Choose a head ref
  • 7 commits
  • 12 files changed
  • 2 contributors

Commits on Mar 2, 2026

  1. Fix multiple indexer, search, and DB bugs

    - Fix crash in _invalidate_index due to DELETE after DROP
    - Lazy load embedding model in get_db to improve performance
    - Fix nested symbol parent_idx mapping and duplicate child symbols in parser.py
    - Sanitize FTS5 MATCH queries to prevent SQL injection in queries.py
    - Support .gitignore rules when indexing documentation in doc_parser.py
    - Fix embedding offset alignment in parallel batch embedding processing
    - Defer SELECT COUNT checks during search until absolutely necessary
    - Fix line number token mapping in documentation chunks
    - Handle PyTorch optional dependency correctly in index stats
    - Fix NotRequired and TypedDict imports for Python 3.10 compatibility
    kapillamba4 committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    6bb08db View commit details
    Browse the repository at this point in the history
  2. fix tests

    Signed-off-by: Kapil Lamba <kapillamba4@gmail.com>
    kapillamba4 committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    f9b206b View commit details
    Browse the repository at this point in the history
  3. Fix search quality issues: task_type, score normalization, FTS5 recal…

    …l, search_docs
    
    - parser.py: Use code2code task_type when indexing code symbols (was nl2code,
      causing embedding subspace mismatch with nl2code query vectors)
    - doc_parser.py: Use code2code for docstrings, nl2code for markdown chunks
    - queries.py: Normalize RRF scores from ~0.01-0.03 range to 0-100 scale;
      remove arbitrary 0.7 cap on single-source confidence; fix default score
      0.5 -> 0.0 in discover_topic to avoid ranking pollution
    - validation.py: Rewrite FTS5 sanitizer to strip special chars from tokens
      instead of wrapping query in quotes (which forced phrase-match and killed
      BM25 recall for multi-word natural language queries)
    - server.py: Fix completely broken search_docs tool - restore missing
      queries.search_documentation() call and response construction (was
      crashing with NameError on every invocation)
    - tests/test_validation.py: Update FTS sanitizer test to match new behavior
    
    NOTE: Existing index must be rebuilt (re-run index_codebase) for the
    embedding task_type fix to take effect on stored vectors.
    kapillamba4 committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    a9c0b0b View commit details
    Browse the repository at this point in the history
  4. fix tests

    Signed-off-by: Kapil Lamba <kapillamba4@gmail.com>
    kapillamba4 committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    b18b936 View commit details
    Browse the repository at this point in the history
  5. Make line numbers optional in DocSearchResult, remove git follow flag

    - Change line_start/line_end to int | None for flexibility
    - Remove follow=True from get_file_history due to git rev-list compatibility issues
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    kapillamba4 and claude committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    0f5c16b View commit details
    Browse the repository at this point in the history
  6. Bump version to 1.0.26

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    kapillamba4 and claude committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    6098bbe View commit details
    Browse the repository at this point in the history
  7. Fix lint errors and bump version to 1.0.27

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    kapillamba4 and claude committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    cbca379 View commit details
    Browse the repository at this point in the history
Loading