jaccardDistance() — drizzle-orm Function Reference
Architecture documentation for the jaccardDistance() function in vector.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD d2eecaa5_f15f_5b99_b63b_a60c72766ac0["jaccardDistance()"] d155802d_6bf7_144f_94a8_70b957517dac["vector.ts"] d2eecaa5_f15f_5b99_b63b_a60c72766ac0 -->|defined in| d155802d_6bf7_144f_94a8_70b957517dac 2f117b41_7784_e39d_7d88_f5fa5ffeaa3e["toSql()"] d2eecaa5_f15f_5b99_b63b_a60c72766ac0 -->|calls| 2f117b41_7784_e39d_7d88_f5fa5ffeaa3e style d2eecaa5_f15f_5b99_b63b_a60c72766ac0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sql/functions/vector.ts lines 170–178
export function jaccardDistance(
column: SQLWrapper | AnyColumn,
value: number[] | string[] | TypedQueryBuilder<any> | string,
): SQL {
if (Array.isArray(value)) {
return sql`${column} <%> ${toSql(value)}`;
}
return sql`${column} <%> ${value}`;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does jaccardDistance() do?
jaccardDistance() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sql/functions/vector.ts.
Where is jaccardDistance() defined?
jaccardDistance() is defined in drizzle-orm/src/sql/functions/vector.ts at line 170.
What does jaccardDistance() call?
jaccardDistance() calls 1 function(s): toSql.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free