@kreuzberg/node 4.6.3 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -5
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +5 -1
- package/dist/types.d.ts +5 -1
- package/dist/types.js.map +1 -1
- package/index.d.ts +73 -12
- package/index.js +52 -52
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -506,6 +506,7 @@ function convertChunk(rawChunk) {
|
|
|
506
506
|
if (!rawChunk || typeof rawChunk !== "object") {
|
|
507
507
|
return {
|
|
508
508
|
content: "",
|
|
509
|
+
chunkType: null,
|
|
509
510
|
metadata: {
|
|
510
511
|
byteStart: 0,
|
|
511
512
|
byteEnd: 0,
|
|
@@ -520,6 +521,7 @@ function convertChunk(rawChunk) {
|
|
|
520
521
|
const metadata = chunk["metadata"] ?? {};
|
|
521
522
|
return {
|
|
522
523
|
content: chunk["content"] ?? "",
|
|
524
|
+
chunkType: chunk["chunk_type"] ?? chunk["chunkType"] ?? null,
|
|
523
525
|
embedding: chunk["embedding"] ?? null,
|
|
524
526
|
metadata: {
|
|
525
527
|
byteStart: metadata["byte_start"] ?? metadata["charStart"] ?? 0,
|
|
@@ -1153,7 +1155,7 @@ function getEmbeddingPreset(name) {
|
|
|
1153
1155
|
}
|
|
1154
1156
|
|
|
1155
1157
|
// typescript/index.ts
|
|
1156
|
-
var __version__ = "4.
|
|
1158
|
+
var __version__ = "4.7.1";
|
|
1157
1159
|
export {
|
|
1158
1160
|
CacheError,
|
|
1159
1161
|
ErrorCode,
|