MCPcopy Create free account
hub / github.com/acking-you/static_flow / image_schema

Function image_schema

crates/cli/src/schema.rs:103–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103pub fn image_schema() -> Arc<Schema> {
104 Arc::new(Schema::new(vec![
105 Field::new("id", DataType::Utf8, false),
106 Field::new("filename", DataType::Utf8, false),
107 blob_field("data", false),
108 Field::new("thumbnail", DataType::Binary, true),
109 Field::new(
110 "vector",
111 DataType::FixedSizeList(
112 Arc::new(Field::new("item", DataType::Float32, false)),
113 IMAGE_VECTOR_DIM as i32,
114 ),
115 true,
116 ),
117 Field::new("metadata", DataType::Utf8, false),
118 Field::new("created_at", DataType::Timestamp(TimeUnit::Millisecond, None), false),
119 ]))
120}
121
122pub fn taxonomy_schema() -> Arc<Schema> {
123 Arc::new(Schema::new(vec![

Callers 7

build_image_batchFunction · 0.85
migrate_images_blob_v2Function · 0.85
ensure_managed_tableFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by 1