Commit 0c55beb7 by archer

perf: comment

parent 9b1c0e1a
......@@ -49,6 +49,6 @@ export const jsonRes = <T = any>(
code,
statusText: '',
message: msg,
data: data || error || null
data: data || null
});
};
......@@ -127,6 +127,9 @@ export const readDocContent = (file: File) =>
};
});
/**
* 向量转成 float32 buffer 格式
*/
export const vectorToBuffer = (vector: number[]) => {
const npVector = new Float32Array(vector);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment