Skip to content

fix: Selector bug fix and API cleanup#29

Merged
Pringled merged 2 commits into
mainfrom
more-fixes
Apr 22, 2026
Merged

fix: Selector bug fix and API cleanup#29
Pringled merged 2 commits into
mainfrom
more-fixes

Conversation

@Pringled
Copy link
Copy Markdown
Member

selector_to_mask was using len(selector) instead of corpus_size as the mask size, causing an IndexError on any filtered search. Also did some API cleanup to make it more consistent and improve naming conventions.

- include_docs → include_text_files
- FileTypeType → FileCategory (field type → category)
- select_language/select_document → filter_languages/filter_paths
- _split_identifier → split_identifier (promote to public)
- file_mapping/language_mapping → _file_mapping/_language_mapping (private)
- enrich_for_bm25: remove dead root parameter
- IndexStats.indexed_files: use _file_mapping length instead of set scan
- Encoder.encode return type tightened to EmbeddingMatrix
- SembleIndex.__init__ docstring: "internal constructor"
- from_git docstring: document temp dir behaviour
- py.typed marker added
@Pringled Pringled merged commit 0cecffc into main Apr 22, 2026
8 checks passed
@Pringled Pringled deleted the more-fixes branch April 22, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant