Compare commits
1
Commits
9e12a8e9c3
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21472bdc72 |
No files matched your search
@@ -30,3 +30,14 @@ search:
|
||||
enabled: true
|
||||
maxDocs: 150000
|
||||
maxMemoryMB: 512
|
||||
- name: combined
|
||||
mode: combined
|
||||
rrf:
|
||||
k: 60
|
||||
topK: 100
|
||||
weights:
|
||||
fuzzy: 1.0
|
||||
combinedCache:
|
||||
enabled: true
|
||||
ttl: 45s
|
||||
maxEntries: 1000
|
||||
Vendored
+8
@@ -90,6 +90,12 @@ declare global {
|
||||
minMatchRatio?: number
|
||||
}
|
||||
|
||||
export interface CombinedCacheConfig {
|
||||
enabled?: boolean
|
||||
ttl?: string
|
||||
maxEntries?: number
|
||||
}
|
||||
|
||||
export interface NgramInMemoryConfig {
|
||||
enabled?: boolean
|
||||
maxDocs?: number
|
||||
@@ -193,6 +199,8 @@ declare global {
|
||||
filter?: { [key: string]: any }
|
||||
/** Ngram search configuration */
|
||||
ngram?: NgramConfig
|
||||
/** Result cache for combined searches */
|
||||
combinedCache?: CombinedCacheConfig
|
||||
/** Regex search configuration */
|
||||
regex?: RegexConfig
|
||||
/** Custom scoring for eval/filter search */
|
||||
|
||||
@@ -321,7 +321,8 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"minimum": 2,
|
||||
"maximum": 10
|
||||
}
|
||||
},
|
||||
"normalize": {
|
||||
@@ -387,6 +388,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"combinedCache": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "string"
|
||||
},
|
||||
"maxEntries": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"regex": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
Reference in new issue
Block a user