Commit graph

6 commits

Author SHA1 Message Date
4d07f43a2e Show related packages based on description embeddings
Package pages get a "Related packages" section: a nearest neighbor
query against the package's own stored embedding (no external service
call), excluding the package itself. Packages without an embedding
render no section.
2026-08-22 23:47:42 +02:00
4948fe50e3 Add semantic package search via pgvector embeddings
Package text search now combines several strategies: exact name match,
name prefix promotion, compound word splitting ("sqlite browser" finds
"sqlitebrowser") and semantic nearest neighbor search over description
embeddings computed by an external embedding service (all-MiniLM-L6-v2,
384 dims) stored with the pgvector extension. Classic PostgreSQL
full-text search remains as fallback when the vector service is
unreachable. Gibberish queries without lexical overlap with the package
data return empty results instead of random matches.

Embeddings can be backfilled with bin/rails debshots:compute_vectors.

Also drops the unused lograge gem from the Gemfile.
2026-08-22 22:07:56 +02:00
edfa390e3e Minor README changes 2024-07-29 19:38:16 +02:00
Christoph Haas
24c4b83762 Moved doc/README.md to main directory 2018-08-08 14:26:44 +02:00
ba440ffb3a Typo 2018-05-14 22:15:18 +02:00
Christoph Haas
193d44f89a Stuff 2017-08-14 08:09:23 +02:00