@@ -4,7 +4,7 @@ import { CODEBASE_INDEX_DEFAULTS } from "@roo-code/types"
44export const MAX_BLOCK_CHARS = 1000
55export const MIN_BLOCK_CHARS = 50
66export const MIN_CHUNK_REMAINDER_CHARS = 200 // Minimum characters for the *next* chunk after a split
7- export const MAX_CHARS_TOLERANCE_FACTOR = 1.05 // 15% tolerance for max chars
7+ export const MAX_CHARS_TOLERANCE_FACTOR = 1.08 // 8% 15 tolerance for max chars
88/**Search */
99export const DEFAULT_SEARCH_MIN_SCORE = CODEBASE_INDEX_DEFAULTS . DEFAULT_SEARCH_MIN_SCORE
1010export const DEFAULT_MAX_SEARCH_RESULTS = CODEBASE_INDEX_DEFAULTS . DEFAULT_SEARCH_RESULTS
@@ -15,15 +15,15 @@ export const MAX_FILE_SIZE_BYTES = 1 * 1024 * 1024 // 1MB
1515
1616/**Directory Scanner */
1717export const MAX_LIST_FILES_LIMIT_CODE_INDEX = 10_000
18- export const BATCH_SEGMENT_THRESHOLD = 10 // 60 Number of code segments to batch for embeddings/upserts
19- export const MAX_BATCH_RETRIES = 3
20- export const INITIAL_RETRY_DELAY_MS = 500
18+ export const BATCH_SEGMENT_THRESHOLD = 8 // 60 Number of code segments to batch for embeddings/upserts
19+ export const MAX_BATCH_RETRIES = 5
20+ export const INITIAL_RETRY_DELAY_MS = 600
2121export const PARSING_CONCURRENCY = 10
2222export const MAX_PENDING_BATCHES = 20 // Maximum number of batches to accumulate before waiting
2323
2424/**OpenAI Embedder */
2525export const MAX_BATCH_TOKENS = 100000
26- export const MAX_ITEM_TOKENS = 1536
26+ export const MAX_ITEM_TOKENS = 2048
2727export const BATCH_PROCESSING_CONCURRENCY = 10
2828
2929/**Gemini Embedder */
0 commit comments