Commit graph

24 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
e1f42aee0c rubocop 2025-06-26 23:34:51 +02:00
25672aabb0 Update to Rails 7.2 2025-02-25 21:57:16 +01:00
55ea782b86 tests rubocopified 2024-07-15 00:05:56 +02: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
Christoph Haas
5498e9b9a4 Basic tests added 2018-08-14 14:19:07 +02:00
Christoph Haas
64bf286636 Tests run okay
…they are massively incomplete though
2018-08-13 15:02:28 +02:00
Christoph Haas
80d21a1f90 Cruft from seperate log controller removed 2018-08-13 15:02:11 +02:00
a1ba2625bf Fixed deprecation warnings 2017-04-17 00:02:23 +02:00
230f5ec213 Logs controller added 2016-08-23 19:01:01 +02:00
1ca187e0ed minitest now generally works with Devise 2016-07-22 16:03:50 +02:00
b3d0b2dc06 JSON controller added. /json/package/:name implemented 2016-06-28 11:39:31 +02:00
6002cd56e0 Authlogic cruft removed 2016-06-14 17:04:43 +02:00
a153391615 Moved moderation code to new moderate controller 2016-04-14 16:49:17 +02:00
83259aab54 Controller users and user_sessions added 2016-02-26 17:34:36 +01:00
e6a0f15340 Removed "authlogic" completely. Let's try "devise". 2015-07-15 17:05:56 +02:00
737ff62cfc Trying to get authlogic running 2015-07-13 18:42:36 +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
f28c637d10 Welcome controller added
Can be used for main index, about page etc.
2013-07-27 01:23:08 +02:00
3af24f56dc Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00