Skip to content

Commit

Permalink
feature: add thumbnail as image_url
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh authored and cdxker committed Dec 19, 2024
1 parent dcb4874 commit 56f42c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/bin/video-worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ async fn video_worker(
"title": video.snippet.title.clone(),
"url": format!("https://www.youtube.com/watch?v={}", video.id.video_id),
"hierarchy": video.snippet.title.clone(),
"description": video.snippet.description.clone()
"description": video.snippet.description.clone(),
"yt_preview_src": video.snippet.thumbnails.high.url.clone(),
})),
group_ids: Some(vec![chunk_group.id]),
group_tracking_ids: None,
Expand All @@ -224,7 +225,7 @@ async fn video_worker(
weight: None,
split_avg: None,
convert_html_to_text: None,
image_urls: None,
image_urls: Some(vec![video.snippet.thumbnails.high.url.clone()]),
num_value: None,
fulltext_boost: None,
semantic_boost: None,
Expand Down

0 comments on commit 56f42c1

Please sign in to comment.