Skip to content

Commit 03ffb5a

Browse files
authored
fix(adk): typo and remove unimplemented data source (#408)
1 parent 11bce26 commit 03ffb5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adk/concepts/knowledge.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default new Knowledge({
123123
Index 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
149150
Index 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

0 commit comments

Comments
 (0)