Commit graph

13 commits

Author SHA1 Message Date
a98398f7a1 Limit show=libs inspection view to packages with screenshots 2026-08-23 12:33:28 +02:00
3a1de72efe Add temporary show=libs inspection view
Lets you browse exactly the packages that the libs section blacklist
would remove on the next import, to review them visually before
running it.
2026-08-23 11:20:36 +02:00
4c736096ae Show search source badges only with show_sources param
The badges are a debugging aid - render them only when explicitly
requested via ?show_sources=1 instead of on every search.
2026-08-23 10:49:32 +02:00
323b7004ed Expose which search strategy produced each result
query_packages now assigns @search_sources - a hash mapping package
ids to the matching strategy that put them into the results: :exact,
:name_prefix, :name_contains, :semantic or :fulltext. The grid and
list views render a small badge with a humanized label per result,
making the search tiers observable. semantic_results() was folded
into search_packages() so each branch tags its own source. Adds the
rails-controller-testing gem for assigns() in tests.
2026-08-23 10:39:50 +02:00
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
e1f42aee0c rubocop 2025-06-26 23:34:51 +02:00
25672aabb0 Update to Rails 7.2 2025-02-25 21:57:16 +01:00
47df4d8afd Fix test suite 2021-03-02 00:51:24 +01:00
Christoph Haas
2746b22c18 upload screenshot anonymously, login in, get screenshots assigned 2018-08-21 18:25:18 +02:00
Christoph Haas
820ff2a30b Tests improved 2018-08-20 22:27:35 +02:00
ed99d198f0 Fixed controller tests 2015-04-23 17:20:06 +02:00
c2a695aec0 Packages controller added 2013-07-27 01:23:28 +02:00