Skip to content

Commit 491893d

Browse files
committed
improve metadata import/export example
1 parent e39b3a1 commit 491893d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ by adding `external_id` to the imported file. For example:
252252
Input file may look like this:
253253
`import.json`
254254
```JSON
255-
{"text": "EU rejects German call to boycott British lamb.", "external_id": 1}
255+
{"text": "EU rejects German call to boycott British lamb.", "meta": {"external_id": 1}}
256256
```
257257
and the exported file will look like this:
258258
`output.json`
259259
```JSON
260-
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "metadata": {"external_id": 1}}
260+
{"doc_id": 2023, "text": "EU rejects German call to boycott British lamb.", "labels": ["news"], "username": "root", "meta": {"external_id": 1}}
261261
```
262262

263263
### Tutorial

0 commit comments

Comments
 (0)