File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export default new Knowledge({
123123Index files from a local directory (development only):
124124
125125``` typescript
126- const FileSource = DataSource .Directory .fromPath (" /src/knowledge/docs" , {
126+ const FileSource = DataSource .Directory .fromPath (" . /src/knowledge/docs" , {
127127 filter : (filePath ) => filePath .endsWith (" .md" ) || filePath .endsWith (" .txt" ),
128128});
129129
@@ -144,7 +144,8 @@ export default new Knowledge({
144144| ` id ` | ` string ` | Optional unique identifier for the source |
145145| ` filter ` | ` (filePath: string) => boolean ` | Filter function to include/exclude files |
146146
147- ### Table source
147+ { /* Temporarily removing as these are not yet implemented */ }
148+ { /* ### Table source
148149
149150Index data from a table:
150151
@@ -163,7 +164,7 @@ export default new Knowledge({
163164 name: "orders-kb",
164165 sources: [TableSource],
165166});
166- ```
167+ ``` */ }
167168
168169## Using knowledge in conversations
169170
You can’t perform that action at this time.
0 commit comments