Skip to content

feat: add semantic search tool for UI5 documentation#221

Closed
dobrinyonkov wants to merge 2 commits into
UI5:mainfrom
dobrinyonkov:new-semantic-search-tool
Closed

feat: add semantic search tool for UI5 documentation#221
dobrinyonkov wants to merge 2 commits into
UI5:mainfrom
dobrinyonkov:new-semantic-search-tool

Conversation

@dobrinyonkov
Copy link
Copy Markdown

@dobrinyonkov dobrinyonkov commented Feb 6, 2026

Add search_ui5_docs tool that performs vector similarity search
against pre-computed embeddings of UI5 docs and code snippets by meaning rather than keywords.

  • Local ONNX model (all-MiniLM-L6-v2) for query embedding
  • Consumes pre-generated embeddings from resources/embeddings/
  • Embeddings generated via separate tool: ui5-docs-rag
  • Returns ranked results with similarity scores

Runtime behavior:

  • First search downloads ONNX model (~86 MB) from HuggingFace
  • Model cached at ~/.local/share/semantic-search/models/
  • First search: 7s-3min (depends on connection)
  • Subsequent searches: ~100-300ms

Alternative approaches considered:

  • Download on server startup: delays server readiness
  • Bundle model with package: adds ~86 MB to npm package, enables offline use

@dobrinyonkov dobrinyonkov force-pushed the new-semantic-search-tool branch from a0ab2cd to eb2e756 Compare February 6, 2026 12:01
@dobrinyonkov
Copy link
Copy Markdown
Author

Closing for now, will look into central search solutions.

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