Skip to content

Commit 9c4bff3

Browse files
committed
nomic
1 parent 685d582 commit 9c4bff3

File tree

1 file changed

+5
-6
lines changed
  • src/services/code-index/constants

1 file changed

+5
-6
lines changed

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

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

33
/**Parser */
4-
export const MAX_BLOCK_CHARS = 2048
4+
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.15 // 15% tolerance for max chars
8-
7+
export const MAX_CHARS_TOLERANCE_FACTOR = 1.05 // 15% tolerance for max chars
98
/**Search */
109
export const DEFAULT_SEARCH_MIN_SCORE = CODEBASE_INDEX_DEFAULTS.DEFAULT_SEARCH_MIN_SCORE
1110
export 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
1514
export 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
2019
export const MAX_BATCH_RETRIES = 3
2120
export const INITIAL_RETRY_DELAY_MS = 500
2221
export const PARSING_CONCURRENCY = 10
2322
export const MAX_PENDING_BATCHES = 20 // Maximum number of batches to accumulate before waiting
2423

2524
/**OpenAI Embedder */
2625
export const MAX_BATCH_TOKENS = 100000
27-
export const MAX_ITEM_TOKENS = 8191
26+
export const MAX_ITEM_TOKENS = 1536
2827
export const BATCH_PROCESSING_CONCURRENCY = 10
2928

3029
/**Gemini Embedder */

0 commit comments

Comments
 (0)