Add LLM based parsing
All checks were successful
Cargo Build & Test / Rust project - latest (1.86) (push) Successful in 3m49s
Cargo Build & Test / Rust project - latest (1.87) (push) Successful in 4m2s
Cargo Build & Test / Rust project - latest (1.88) (push) Successful in 4m17s
Cargo Build & Test / Rust project - latest (1.85.1) (push) Successful in 9m36s

This commit is contained in:
2025-09-06 19:24:24 -04:00
parent b538dd8012
commit 373bc6e050
5 changed files with 153 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ use ebay_scraper_rust::db::{
get_stats, listings_get_filtered,
};
use ebay_scraper_rust::parser::parse_dir;
use ebay_scraper_rust::parser_storage;
use ebay_scraper_rust::{parser_storage_e0, parser_storage_e1};
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
use std::sync::Mutex;
@@ -102,7 +102,7 @@ async fn parse_listings(db: Data<Mutex<rusqlite::Connection>>) -> Result<impl Re
let db_unlocked = db.lock().unwrap();
Listing::lookup_non_parsed(&db_unlocked)
.iter()
.map(|l| parser_storage::parse_size_and_quantity(l.0, &l.1))
.map(|l| parser_storage_e0::parse_size_and_quantity(l.0, &l.1))
.inspect(|_| cnt = cnt + 1)
.for_each(|ps| ps.add_or_update(&db_unlocked));