Added merge
All checks were successful
Publish Metadata Agent Image / build-and-push-image (push) Successful in 1m7s
Publish Web Player Image / build-and-push-image (push) Successful in 1m11s
Publish Server Image / build-and-push-image (push) Successful in 2m14s

This commit is contained in:
2026-03-19 00:55:49 +00:00
parent 4a272f373d
commit e1782a6e3b
13 changed files with 949 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
mod config;
mod db;
mod ingest;
mod merge;
mod web;
use std::sync::Arc;
@@ -24,6 +25,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let system_prompt = args.load_system_prompt()?;
tracing::info!("System prompt loaded: {} chars", system_prompt.len());
let merge_prompt = args.load_merge_prompt()?;
tracing::info!("Merge prompt loaded: {} chars", merge_prompt.len());
tracing::info!("Connecting to database...");
let pool = db::connect(&args.database_url).await?;
tracing::info!("Running database migrations...");
@@ -34,6 +38,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
pool: pool.clone(),
config: Arc::new(args),
system_prompt: Arc::new(system_prompt),
merge_prompt: Arc::new(merge_prompt),
});
// Spawn the ingest pipeline as a background task