filter: [ | |
{ | |
bool: { | |
/// Include documents that match at least one of the following rules | |
should: [ | |
/// Downloaded from diffusers lib | |
{ | |
term: { path: "model_index.json" }, | |
}, | |
/// Direct downloads (LoRa, Auto1111 and others) | |
/// Filter out nested safetensors and pickle weights to avoid double counting downloads from the diffusers lib | |
{ | |
regexp: { path: "[^/]*\\.safetensors" }, | |
}, | |
{ | |
regexp: { path: "[^/]*\\.ckpt" }, | |
}, | |
{ | |
regexp: { path: "[^/]*\\.bin" }, | |
}, | |
], | |
minimum_should_match: 1, | |
}, | |
}, | |
] | |
} |