Skip to content

Commit e1f4583

Browse files
authored
Update index.ts
1 parent 5257692 commit e1f4583

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CODEBASE_INDEX_DEFAULTS } from "@roo-code/types"
44
export const MAX_BLOCK_CHARS = 1000
55
export const MIN_BLOCK_CHARS = 50
66
export 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 // 15% tolerance for max chars
88
/**Search */
99
export const DEFAULT_SEARCH_MIN_SCORE = CODEBASE_INDEX_DEFAULTS.DEFAULT_SEARCH_MIN_SCORE
1010
export 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 */
1717
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
18+
export const BATCH_SEGMENT_THRESHOLD = 8 // 60 Number of code segments to batch for embeddings/upserts
1919
export const MAX_BATCH_RETRIES = 3
2020
export const INITIAL_RETRY_DELAY_MS = 500
2121
export const PARSING_CONCURRENCY = 10
2222
export const MAX_PENDING_BATCHES = 20 // Maximum number of batches to accumulate before waiting
2323

2424
/**OpenAI Embedder */
2525
export const MAX_BATCH_TOKENS = 100000
26-
export const MAX_ITEM_TOKENS = 1536
26+
export const MAX_ITEM_TOKENS = 2048
2727
export const BATCH_PROCESSING_CONCURRENCY = 10
2828

2929
/**Gemini Embedder */

0 commit comments

Comments
 (0)