You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can have the "source" value as metadata by returning the following:
24
+
\`\`\`json
25
+
{
26
+
"source": "/source"
27
+
}
28
+
\`\`\``
6
29
7
30
classJsonlines_DocumentLoadersimplementsINode{
8
31
label: string
@@ -18,7 +41,7 @@ class Jsonlines_DocumentLoaders implements INode {
18
41
constructor(){
19
42
this.label='Json Lines File'
20
43
this.name='jsonlinesFile'
21
-
this.version=1.0
44
+
this.version=2.0
22
45
this.type='Document'
23
46
this.icon='jsonlines.svg'
24
47
this.category='Document Loaders'
@@ -41,14 +64,20 @@ class Jsonlines_DocumentLoaders implements INode {
41
64
label: 'Pointer Extraction',
42
65
name: 'pointerName',
43
66
type: 'string',
44
-
placeholder: 'Enter pointer name',
67
+
placeholder: 'key',
68
+
description: 'Ex: { "key": "value" }, Pointer Extraction = "key", "value" will be extracted as pageContent of the chunk',
45
69
optional: false
46
70
},
47
71
{
48
72
label: 'Additional Metadata',
49
73
name: 'metadata',
50
74
type: 'json',
51
-
description: 'Additional metadata to be added to the extracted documents',
75
+
description:
76
+
'Additional metadata to be added to the extracted documents. You can add metadata dynamically from the document. Ex: { "key": "value", "source": "www.example.com" }. Metadata: { "page": "/source" } will extract the value of the key "source" from the document and add it to the metadata with the key "page"',
77
+
hint: {
78
+
label: 'How to use',
79
+
value: howToUseCode
80
+
},
52
81
optional: true,
53
82
additionalParams: true
54
83
},
@@ -96,7 +125,7 @@ class Jsonlines_DocumentLoaders implements INode {
0 commit comments