feat: score-based search, LLM re-ranking endpoint, video title search, pipeline module
Core search changes: - Replace RRF with score-based merge (max of semantic/keyword/identity) - Add video title ILIKE search for brand/name queries (score 0.9) - Add /api/v1/search/llm-smart endpoint with Gemma 4 re-ranking - Fix LLM JSON parsing (markdown fences, empty responses) Infrastructure: - Rebuild Qdrant collection (clear 347K contaminated points) - Add dotenv loading to main.rs for config parity - Implement store_pre_chunk in postgres_db.rs Pipeline module (WordPress): - store-asrx, rule1, vectorize, phase1, complete endpoints - CLI commands for pipeline operations Docs: - SEARCH_SCORE_IMPROVEMENT.md (score-based merge proposal)
This commit is contained in:
@@ -419,3 +419,26 @@ pub async fn handle_n8n(
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Handle store-asrx command
|
||||
pub async fn handle_store_asrx(uuid: &str) -> Result<()> {
|
||||
let db = momentry_core::core::db::postgres_db::PostgresDb::new(
|
||||
&momentry_core::core::config::DATABASE_URL,
|
||||
)
|
||||
.await?;
|
||||
momentry_core::core::pipeline::store_asrx_chunks(&db, uuid).await
|
||||
}
|
||||
|
||||
/// Handle phase1 command
|
||||
pub async fn handle_phase1(uuid: &str) -> Result<()> {
|
||||
momentry_core::core::pipeline::run_phase1(uuid).await
|
||||
}
|
||||
|
||||
/// Handle complete command
|
||||
pub async fn handle_complete(uuid: &str) -> Result<()> {
|
||||
let db = momentry_core::core::db::postgres_db::PostgresDb::new(
|
||||
&momentry_core::core::config::DATABASE_URL,
|
||||
)
|
||||
.await?;
|
||||
momentry_core::core::pipeline::mark_complete(&db, uuid).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user