mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
add back metadata
This commit is contained in:
parent
4ba8254fcc
commit
752b87a248
|
@ -427,10 +427,10 @@ export const createVectorStoreNode = (args: VectorStoreNodeConstructorArgs) =>
|
||||||
return documents
|
return documents
|
||||||
.map((document) => {
|
.map((document) => {
|
||||||
// Tools can only return a string or array of objects with type text
|
// Tools can only return a string or array of objects with type text
|
||||||
// todo return concatenated strings instead?
|
// todo return concatenated strings instead? Or just without metadata?
|
||||||
return { type: 'text', text: document[0].pageContent };
|
// return { type: 'text', text: document[0].pageContent };
|
||||||
// todo with metadata?
|
// todo with metadata?
|
||||||
// return { type: 'text', text: JSON.stringify(document[0]) };
|
return { type: 'text', text: JSON.stringify(document[0]) };
|
||||||
})
|
})
|
||||||
.filter((document) => !!document);
|
.filter((document) => !!document);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue