File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/services/code-index/constants Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -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 // 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
18+ export const BATCH_SEGMENT_THRESHOLD = 8 // 60 Number of code segments to batch for embeddings/upserts
1919export const MAX_BATCH_RETRIES = 3
2020export const INITIAL_RETRY_DELAY_MS = 500
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 */
You can’t perform that action at this time.
0 commit comments