chunky 1.0.2 copy "chunky: ^1.0.2" to clipboard
chunky: ^1.0.2 copied to clipboard

Chunk strings into smaller pieces for easier processing and storage.

Chunk stuff

  Embedder e = Embedder(
    chunker: Chunker(chunkSize: 300),
    embedder: (k) async {
      return [];
    },
    overlap: 50,
  );

  await for (EmbeddedChunk i in e.transform(Stream.fromIterable([s]))) {
    print(
      "${i.chunk.id}: ${i.chunk.start}++${i.chunk.length}: ${i.chunk.content.trim().replaceAll("\n", "")}",
    );
  }
0
likes
130
points
376
downloads

Publisher

unverified uploader

Weekly Downloads

Chunk strings into smaller pieces for easier processing and storage.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

archive, bpe, excel, fast_log, flutter, syncfusion_flutter_pdf, toxic, xml

More

Packages that depend on chunky