chore: snapshot before performance optimization
This commit is contained in:
@@ -55,9 +55,10 @@ export async function GET() {
|
||||
continue
|
||||
}
|
||||
|
||||
// Parse and validate embedding
|
||||
// Validate embedding
|
||||
try {
|
||||
const embedding = JSON.parse(note.embedding)
|
||||
if (!note.embedding) continue
|
||||
const embedding = JSON.parse(note.embedding) as number[]
|
||||
const validation = validateEmbedding(embedding)
|
||||
|
||||
if (!validation.valid) {
|
||||
|
||||
Reference in New Issue
Block a user