Skip to content

Commit 9e5baca

Browse files
Merge pull request #3434 from RedisInsight/be/bugfix/enhance-context
remove count field from top_values
2 parents b2ff6ba + 71ec973 commit 9e5baca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/ai/query/utils/context.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const getAttributeTopValues = async (client: RedisClient, index: string,
7777

7878
return {
7979
distinct_count: parseInt(distinct, 10),
80-
top_values: top?.map(([, value, , count]) => ({ value, count })),
80+
top_values: top?.map(([, value]) => ({ value })),
8181
};
8282
default:
8383
return {};

0 commit comments

Comments
 (0)