agsamantha/node_modules/langchain/dist/util/ml-distance/similarities.d.ts
2024-10-02 15:15:21 -05:00

7 lines
199 B
TypeScript

/**
* Returns the average of cosine distances between vectors a and b
* @param a - first vector
* @param b - second vector
*
*/
export declare function cosine(a: number[], b: number[]): number;