We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb70285 commit 31fbad6Copy full SHA for 31fbad6
packages/client/utils/smartGroup/groupReflections.ts
@@ -1,6 +1,20 @@
1
import {computeJaccardDistanceMatrix} from './computeJaccardDistanceMatrix'
2
import getGroupMatrix from './getGroupMatrix'
3
4
+type Entity = {
5
+ lemma: string
6
+ name: string
7
+ salience: number
8
+}
9
+
10
+type GroupedReflectionRes = {
11
+ reflectionId: string
12
+ entities: Entity[]
13
+ oldReflectionGroupId: string
14
+ sortOrder: number
15
+ reflectionGroupId: string
16
17
18
export type GroupingOptions = {
19
groupingThreshold: number
20
maxGroupSize?: number
0 commit comments