clanka 0.2.24 → 0.2.25

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.
@@ -29,7 +29,7 @@ const resolveChunkConfig = (options) => ({
29
29
  chunkOverlap: 0,
30
30
  chunkMaxCharacters: options.chunkMaxCharacters ?? 10_000,
31
31
  });
32
- export const makeEmbeddingResolver = (resolver, options) => resolver.pipe(RequestResolver.setDelay(options.embeddingRequestDelay ?? Duration.millis(50)), RequestResolver.batchN(options.embeddingBatchSize ?? 500));
32
+ export const makeEmbeddingResolver = (resolver, options) => resolver.pipe(RequestResolver.setDelay(options.embeddingRequestDelay ?? Duration.millis(50)), RequestResolver.batchN(options.embeddingBatchSize ?? 300));
33
33
  export const chunkEmbeddingInput = (chunk) => {
34
34
  const headerLines = ["---", "file: " + chunk.path];
35
35
  if (chunk.name !== undefined) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clanka",
3
3
  "type": "module",
4
- "version": "0.2.24",
4
+ "version": "0.2.25",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -51,7 +51,7 @@ export const makeEmbeddingResolver = (
51
51
  RequestResolver.setDelay(
52
52
  options.embeddingRequestDelay ?? Duration.millis(50),
53
53
  ),
54
- RequestResolver.batchN(options.embeddingBatchSize ?? 500),
54
+ RequestResolver.batchN(options.embeddingBatchSize ?? 300),
55
55
  )
56
56
 
57
57
  export const chunkEmbeddingInput = (chunk: CodeChunker.CodeChunk): string => {