Enhanced the hybrid search strategy with tsvector keyword matching (#539)

This commit is contained in:
Cole Medin
2025-09-10 05:23:49 -06:00
committed by GitHub
parent 012d2c58ed
commit 926b6f5a7b
7 changed files with 568 additions and 341 deletions

View File

@@ -133,6 +133,10 @@ BEGIN
DROP FUNCTION IF EXISTS match_archon_crawled_pages(vector, int, jsonb, text) CASCADE;
DROP FUNCTION IF EXISTS match_archon_code_examples(vector, int, jsonb, text) CASCADE;
-- Hybrid search functions (with ts_vector support)
DROP FUNCTION IF EXISTS hybrid_search_archon_crawled_pages(vector, text, int, jsonb, text) CASCADE;
DROP FUNCTION IF EXISTS hybrid_search_archon_code_examples(vector, text, int, jsonb, text) CASCADE;
-- Search functions (old without prefix)
DROP FUNCTION IF EXISTS match_crawled_pages(vector, int, jsonb, text) CASCADE;
DROP FUNCTION IF EXISTS match_code_examples(vector, int, jsonb, text) CASCADE;