aboutsummaryrefslogtreecommitdiff
path: root/core/constants.go
blob: baba926757bfaf74db74edb01754d72dfb608eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Vendored from scholscan/core/constants.go (rev 7c1a5ef, 2026-08-28).
// Owned here; no upstream sync.
// Default configuration constants.
//
// Timeouts are defensive: 30s for HTTP requests, 5s for graceful shutdown.
// Score threshold 0.5 is neutral; models should learn their own.
// MinTitleLength filters junk/broken titles (<15 chars rarely meaningful).
// ChunkSize 50 balances memory usage vs batch efficiency.
package core

import "time"

const (
	DefaultHTTPTimeout     = 30 * time.Second
	DefaultContextTimeout  = 10 * time.Second
	DefaultReadTimeout     = 30 * time.Second
	DefaultWriteTimeout    = 30 * time.Second
	DefaultIdleTimeout     = 120 * time.Second
	DefaultShutdownTimeout = 5 * time.Second
	DefaultScoreThreshold  = 0.5
	MinTitleLength         = 15
	DefaultChunkSize       = 50
)