{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Registers custom SQLite functions for ranking and analyzing FTS4 full-text search results, including BM25 scoring, TF-IDF ranking, and matchinfo decoding.","skillfed_tags":["search-ranking","sqlite-extension","fts4"],"use_cases":["Rank full-text search results by relevance using BM25 scoring in a SQLite-backed application.","Convert opaque SQLite matchinfo binary output into readable JSON for debugging or analysis.","Implement TF-IDF-based document ranking without external search infrastructure.","Annotate matchinfo results to understand how SQLite calculated match statistics for each query.","Integrate search ranking into Datasette via the datasette-sqlite-fts4 plugin."],"what_it_does":"sqlite-fts4 is a Python module that registers custom SQL functions into SQLite to improve full-text search ranking and analysis. It provides four main functions: rank_score() implements a simple TF-IDF-based ranking, rank_bm25() implements the Okapi BM25 algorithm for relevance scoring, decode_matchinfo() converts SQLite's binary matchinfo output into human-readable JSON integers, and annotate_matchinfo() produces a verbose JSON structure explaining what each value in matchinfo means.\n\nYou use it by importing the module, calling register_functions() on a SQLite connection, and then invoking the functions in your FTS4 queries via SQL. It has no runtime dependencies and installs as a pure Python wheel, making it lightweight to add to projects that already use SQLite and FTS4 for search. The package is designed for developers building search features on top of SQLite's full-text indexing.","worth_installing":"Yes, if you are already using SQLite FTS4 and need ranking functions\u2014it is lightweight, dependency-free, and permissively licensed. However, the package is abandoned (last update 2022-07-30) and has no active maintenance, so expect no updates for bugs or compatibility issues with future Python versions. Suitable for stable, self-contained projects; risky for long-term production systems requiring ongoing support."},"id":"sqlite-fts4","links":{"html":"https://skillfed.io/packages/sqlite-fts4","md":"https://skillfed.io/packages/sqlite-fts4.md","pypi":"https://pypi.org/project/sqlite-fts4/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-07-30","license_spdx":null,"license_treatment":"permissive","name":"sqlite-fts4","python_support":"unspecified","summary":"Python functions for working with SQLite FTS4 search"},"popularity":{"monthly_downloads":1278961,"position":4119,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.3"}
