File tree Expand file tree Collapse file tree
extensions/memory-lancedb Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1578,16 +1578,16 @@ export default definePluginEntry({
15781578 }
15791579
15801580 const text = results
1581- . map ( ( { result, text } , i ) => {
1582- const escapedText = escapeMemoryForPrompt ( text ) ;
1581+ . map ( ( { result, text : memoryText } , i ) => {
1582+ const escapedText = escapeMemoryForPrompt ( memoryText ) ;
15831583 return `${ i + 1 } . [${ result . entry . category } ] ${ escapedText } (${ ( result . score * 100 ) . toFixed ( 0 ) } %)` ;
15841584 } )
15851585 . join ( "\n" ) ;
15861586
15871587 // Strip vector data for serialization (typed arrays can't be cloned)
1588- const sanitizedResults = results . map ( ( { result, text } ) => ( {
1588+ const sanitizedResults = results . map ( ( { result, text : memoryText } ) => ( {
15891589 id : result . entry . id ,
1590- text,
1590+ text : memoryText ,
15911591 category : result . entry . category ,
15921592 importance : result . entry . importance ,
15931593 score : result . score ,
You can’t perform that action at this time.
0 commit comments