11import { CODEBASE_INDEX_DEFAULTS } from "@roo-code/types"
22
33/**Parser */
4- export const MAX_BLOCK_CHARS = 2048
4+ export 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.15 // 15% tolerance for max chars
8-
7+ export const MAX_CHARS_TOLERANCE_FACTOR = 1.05 // 15% tolerance for max chars
98/**Search */
109export const DEFAULT_SEARCH_MIN_SCORE = CODEBASE_INDEX_DEFAULTS . DEFAULT_SEARCH_MIN_SCORE
1110export const DEFAULT_MAX_SEARCH_RESULTS = CODEBASE_INDEX_DEFAULTS . DEFAULT_SEARCH_RESULTS
@@ -15,16 +14,16 @@ export const QDRANT_CODE_BLOCK_NAMESPACE = "f47ac10b-58cc-4372-a567-0e02b2c3d479
1514export const MAX_FILE_SIZE_BYTES = 1 * 1024 * 1024 // 1MB
1615
1716/**Directory Scanner */
18- export const MAX_LIST_FILES_LIMIT_CODE_INDEX = 50_000
19- export const BATCH_SEGMENT_THRESHOLD = 32 // Number of code segments to batch for embeddings/upserts
17+ export 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
2019export const MAX_BATCH_RETRIES = 3
2120export const INITIAL_RETRY_DELAY_MS = 500
2221export const PARSING_CONCURRENCY = 10
2322export const MAX_PENDING_BATCHES = 20 // Maximum number of batches to accumulate before waiting
2423
2524/**OpenAI Embedder */
2625export const MAX_BATCH_TOKENS = 100000
27- export const MAX_ITEM_TOKENS = 8191
26+ export const MAX_ITEM_TOKENS = 1536
2827export const BATCH_PROCESSING_CONCURRENCY = 10
2928
3029/**Gemini Embedder */
0 commit comments