Skip to content

Commit 37993ec

Browse files
authored
Weaviate destination connector: record_id property required on collections (#372)
1 parent b3c6b54 commit 37993ec

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

snippets/general-shared-text/weaviate.mdx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,23 @@
2323
allowfullscreen
2424
></iframe>
2525

26-
Weaviate requires the collection to have a data schema before you add data. However, you don't have to create a data schema manually.
27-
If you don't provide one, Weaviate generates a schema based on the incoming data.
26+
Weaviate requires the collection to have a data schema before you add data. At minimum, this schema must contain the `record_id` property, as follows:
2827

29-
However, if you have specific schema requirements, you can create the schema manually.
28+
```json
29+
{
30+
"class": "Elements",
31+
"properties": [
32+
{
33+
"name": "record_id",
34+
"dataType": ["text"]
35+
}
36+
]
37+
}
38+
```
39+
40+
Weaviate generates any additional properties based on the incoming data.
41+
42+
If you have specific schema requirements, you can define the schema manually.
3043
Unstructured cannot provide a schema that is guaranteed to work for everyone in all circumstances.
3144
This is because these schemas will vary based on
3245
your source files' types; how you want Unstructured to partition, chunk, and generate embeddings;
@@ -38,6 +51,10 @@ You can adapt the following collection schema example for your own specific sche
3851
{
3952
"class": "Elements",
4053
"properties": [
54+
{
55+
"name": "record_id",
56+
"dataType": ["text"]
57+
},
4158
{
4259
"name": "element_id",
4360
"dataType": ["text"]

0 commit comments

Comments
 (0)