Skip to content

feat(search): add SQLite FTS5 post-build search index script - #801

Open
jeevantelukula wants to merge 1 commit into
TexasInstruments:masterfrom
jeevantelukula:sqlite_fts5
Open

jeevantelukula wants to merge 1 commit into
TexasInstruments:masterfrom
jeevantelukula:sqlite_fts5

Conversation

@jeevantelukula

Copy link
Copy Markdown
Collaborator

Sphinx's searchindex.js stores only boolean term membership with no TF-IDF or field weighting, works good for manual browser search but gives poor ranking for programmatic (MCP/AI agent) search queries.

Add build_searchindex.py that runs after sphinx-build via html make target, parses HTML output, extracts the weighted fields (based on title, code_blocks, image_alt and body_text) and writes searchindex.db with a BM25-ranked FTS5 index. MCP server queries this DB to return accurately ranked doc pages to AI agents.

Also add beautifulsoup4 additionally to docker deps.

Sphinx's searchindex.js stores only boolean term membership with no
TF-IDF or field weighting, works good for manual browser search but
gives poor ranking for programmatic (MCP/AI agent) search queries.

Add build_searchindex.py that runs after sphinx-build via html make
target, parses HTML output, extracts the weighted fields (based on
title, code_blocks, image_alt and body_text) and writes searchindex.db
with a BM25-ranked FTS5 index. MCP server queries this DB to return
accurately ranked doc pages to AI agents.

Also add beautifulsoup4 additionally to docker deps.

Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com>
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