Updated documentation examples to include chunk_order_index case
Browse files- README.md +8 -0
- examples/insert_custom_kg.py +9 -0
README.md
CHANGED
|
@@ -608,14 +608,22 @@ custom_kg = {
|
|
| 608 |
{
|
| 609 |
"content": "ProductX, developed by CompanyA, has revolutionized the market with its cutting-edge features.",
|
| 610 |
"source_id": "Source1",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 611 |
},
|
| 612 |
{
|
| 613 |
"content": "PersonA is a prominent researcher at UniversityB, focusing on artificial intelligence and machine learning.",
|
| 614 |
"source_id": "Source2",
|
|
|
|
| 615 |
},
|
| 616 |
{
|
| 617 |
"content": "None",
|
| 618 |
"source_id": "UNKNOWN",
|
|
|
|
| 619 |
},
|
| 620 |
],
|
| 621 |
}
|
|
|
|
| 608 |
{
|
| 609 |
"content": "ProductX, developed by CompanyA, has revolutionized the market with its cutting-edge features.",
|
| 610 |
"source_id": "Source1",
|
| 611 |
+
"chunk_order_index": 0,
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"content": "One outstanding feature of ProductX is its advanced AI capabilities.",
|
| 615 |
+
"source_id": "Source1",
|
| 616 |
+
"chunk_order_index": 1,
|
| 617 |
},
|
| 618 |
{
|
| 619 |
"content": "PersonA is a prominent researcher at UniversityB, focusing on artificial intelligence and machine learning.",
|
| 620 |
"source_id": "Source2",
|
| 621 |
+
"chunk_order_index": 0,
|
| 622 |
},
|
| 623 |
{
|
| 624 |
"content": "None",
|
| 625 |
"source_id": "UNKNOWN",
|
| 626 |
+
"chunk_order_index": 0,
|
| 627 |
},
|
| 628 |
],
|
| 629 |
}
|
examples/insert_custom_kg.py
CHANGED
|
@@ -87,18 +87,27 @@ custom_kg = {
|
|
| 87 |
{
|
| 88 |
"content": "ProductX, developed by CompanyA, has revolutionized the market with its cutting-edge features.",
|
| 89 |
"source_id": "Source1",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
},
|
| 91 |
{
|
| 92 |
"content": "PersonA is a prominent researcher at UniversityB, focusing on artificial intelligence and machine learning.",
|
| 93 |
"source_id": "Source2",
|
|
|
|
| 94 |
},
|
| 95 |
{
|
| 96 |
"content": "EventY, held in CityC, attracts technology enthusiasts and companies from around the globe.",
|
| 97 |
"source_id": "Source3",
|
|
|
|
| 98 |
},
|
| 99 |
{
|
| 100 |
"content": "None",
|
| 101 |
"source_id": "UNKNOWN",
|
|
|
|
| 102 |
},
|
| 103 |
],
|
| 104 |
}
|
|
|
|
| 87 |
{
|
| 88 |
"content": "ProductX, developed by CompanyA, has revolutionized the market with its cutting-edge features.",
|
| 89 |
"source_id": "Source1",
|
| 90 |
+
"source_chunk_index": 0,
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"content": "One outstanding feature of ProductX is its advanced AI capabilities.",
|
| 94 |
+
"source_id": "Source1",
|
| 95 |
+
"chunk_order_index": 1,
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"content": "PersonA is a prominent researcher at UniversityB, focusing on artificial intelligence and machine learning.",
|
| 99 |
"source_id": "Source2",
|
| 100 |
+
"source_chunk_index": 0,
|
| 101 |
},
|
| 102 |
{
|
| 103 |
"content": "EventY, held in CityC, attracts technology enthusiasts and companies from around the globe.",
|
| 104 |
"source_id": "Source3",
|
| 105 |
+
"source_chunk_index": 0,
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"content": "None",
|
| 109 |
"source_id": "UNKNOWN",
|
| 110 |
+
"source_chunk_index": 0,
|
| 111 |
},
|
| 112 |
],
|
| 113 |
}
|