Skip to content

Commit 685d582

Browse files
committed
batch
1 parent cd1ee1d commit 685d582

File tree

1 file changed

+2
-2
lines changed
  • src/services/code-index/constants

1 file changed

+2
-2
lines changed

src/services/code-index/constants/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CODEBASE_INDEX_DEFAULTS } from "@roo-code/types"
22

33
/**Parser */
4-
export const MAX_BLOCK_CHARS = 1000
4+
export const MAX_BLOCK_CHARS = 2048
55
export const MIN_BLOCK_CHARS = 50
66
export const MIN_CHUNK_REMAINDER_CHARS = 200 // Minimum characters for the *next* chunk after a split
77
export const MAX_CHARS_TOLERANCE_FACTOR = 1.15 // 15% tolerance for max chars
@@ -16,7 +16,7 @@ export const MAX_FILE_SIZE_BYTES = 1 * 1024 * 1024 // 1MB
1616

1717
/**Directory Scanner */
1818
export const MAX_LIST_FILES_LIMIT_CODE_INDEX = 50_000
19-
export const BATCH_SEGMENT_THRESHOLD = 60 // Number of code segments to batch for embeddings/upserts
19+
export const BATCH_SEGMENT_THRESHOLD = 32 // Number of code segments to batch for embeddings/upserts
2020
export const MAX_BATCH_RETRIES = 3
2121
export const INITIAL_RETRY_DELAY_MS = 500
2222
export const PARSING_CONCURRENCY = 10

0 commit comments

Comments
 (0)