Add attributes to search data

This commit is contained in:
Nicolas Mowen 2025-03-17 15:02:21 -06:00
parent a904b3a527
commit 18d035cccd
2 changed files with 2 additions and 0 deletions

View File

@ -701,6 +701,7 @@ def events_search(request: Request, params: EventsSearchQueryParams = Depends())
for k, v in event["data"].items()
if k
in [
"attributes",
"type",
"score",
"top_score",

View File

@ -50,6 +50,7 @@ export type SearchResult = {
score: number;
sub_label_score?: number;
region: number[];
attributes: [{ box: number[]; label: string; score: number }];
box: number[];
area: number;
ratio: number;