Skip to content

LanceDB: Implement path filtering for find_similar_chunks #107

Closed

Description

@ofriw

Summary

The find_similar_chunks method in the LanceDB provider currently logs a warning when path_filter is provided, as this feature is not yet implemented.

Location

chunkhound/providers/database/lancedb_provider.py in _executor_find_similar_chunks

Implementation Notes

From the TODO comment:

Would require joining with files table or post-processing

Options:

  1. Post-processing: Filter results after vector search by looking up file paths
  2. Subquery: Build a list of valid file_ids from files table first, then filter chunks

Context

This is a parity feature with the DuckDB provider which supports path filtering.

Acceptance Criteria

  • find_similar_chunks respects path_filter parameter
  • Performance is reasonable for large codebases
  • Unit tests cover path filtering scenarios

Activity

  1. added a commit that references this issue on Nov 14, 2026
    9ad84e6
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions