debshots/test
Christoph Haas 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
..
controllers Add semantic package search via pgvector embeddings 2026-08-22 22:07:56 +02:00
files APT fixtures moved and shrunk 2021-03-02 22:38:32 +01:00
fixtures add simage_data to make test pass 2026-05-21 22:21:40 +02:00
helpers Tests run okay 2018-08-13 15:02:28 +02:00
integration added test for /thumbnail-for-version 2025-06-26 23:36:28 +02:00
lib bzip2 import fixed 2024-07-14 22:42:34 +02:00
mailers Add ActionMailer to inform admins about new screenshots 2021-02-25 02:43:14 +01:00
models Add semantic package search via pgvector embeddings 2026-08-22 22:07:56 +02:00
system remove the counting of images because it counts the dummy image as well 2026-02-26 00:23:49 +01:00
application_system_test_case.rb System tests added 2020-10-30 18:28:23 +01:00
test_helper.rb Add semantic package search via pgvector embeddings 2026-08-22 22:07:56 +02:00