Skip to content

Commit d8a42eb

Browse files
author
Rudra
committed
Feature loading documents from local folder for Knowledge
1 parent ad85178 commit d8a42eb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/instructlab/schema/v3/knowledge.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,32 @@
7676
"description": "The knowledge documents.",
7777
"type": "object",
7878
"required": [
79-
"repo",
80-
"commit",
8179
"patterns"
8280
],
8381
"unevaluatedProperties": false,
8482
"properties": {
8583
"repo": {
8684
"description": "The URL to a Git repository holding the knowledge documents.",
8785
"type": "string",
88-
"minLength": 1,
8986
"examples": [
9087
"https://github.com/instructlab/instructlab.git"
9188
]
9289
},
9390
"commit": {
9491
"description": "The commit in the Git repository containing the knowledge documents.",
9592
"type": "string",
96-
"minLength": 1,
9793
"examples": [
9894
"951999afdc59c46d325493568193b40bd5439c9e"
9995
]
10096
},
97+
"folder": {
98+
"description": "The absolute path to documents in the local server.",
99+
"type": "string",
100+
"minLength": 1,
101+
"examples": [
102+
"/home/user/docs/"
103+
]
104+
},
101105
"patterns": {
102106
"description": "An array of glob patterns of the knowledge documents in the Git repository.",
103107
"type": "array",
@@ -124,4 +128,4 @@
124128
]
125129
}
126130
}
127-
}
131+
}

0 commit comments

Comments
 (0)