Spaces:
Running
Running
up: add more memory to redis
Browse files- redis.conf +1 -1
- src/constants.py +3 -3
redis.conf
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
loadmodule /opt/redis-stack/lib/redisearch.so
|
2 |
|
3 |
-
maxmemory
|
4 |
|
5 |
dir /tmp
|
|
|
1 |
loadmodule /opt/redis-stack/lib/redisearch.so
|
2 |
|
3 |
+
maxmemory 12gb
|
4 |
|
5 |
dir /tmp
|
src/constants.py
CHANGED
@@ -13,10 +13,10 @@ HNSW_PARAMETERS = {
|
|
13 |
# Defines the initial capacity of the vector index. It helps in pre-allocating space for the index.
|
14 |
"INITIAL_CAP": 440,
|
15 |
# Max number of outgoing edges (connections) for each node in a graph layer.
|
16 |
-
"M":
|
17 |
# Max number of connected neighbors to consider during graph building.
|
18 |
# Higher values increase accuracy, but also increase index build time.
|
19 |
-
"EF_CONSTRUCTION":
|
20 |
# Max top candidates during KNN search. Higher values increase accuracy, but also increase search latency.
|
21 |
"EF_RUNTIME": 10,
|
22 |
}
|
@@ -25,7 +25,7 @@ HNSW_PARAMETERS = {
|
|
25 |
LAUNCH_PARAMETERS = {
|
26 |
"server_name": "0.0.0.0",
|
27 |
"server_port": 7860,
|
28 |
-
"share":
|
29 |
"debug": False,
|
30 |
"show_api": False,
|
31 |
"pwa": True,
|
|
|
13 |
# Defines the initial capacity of the vector index. It helps in pre-allocating space for the index.
|
14 |
"INITIAL_CAP": 440,
|
15 |
# Max number of outgoing edges (connections) for each node in a graph layer.
|
16 |
+
"M": 32,
|
17 |
# Max number of connected neighbors to consider during graph building.
|
18 |
# Higher values increase accuracy, but also increase index build time.
|
19 |
+
"EF_CONSTRUCTION": 512,
|
20 |
# Max top candidates during KNN search. Higher values increase accuracy, but also increase search latency.
|
21 |
"EF_RUNTIME": 10,
|
22 |
}
|
|
|
25 |
LAUNCH_PARAMETERS = {
|
26 |
"server_name": "0.0.0.0",
|
27 |
"server_port": 7860,
|
28 |
+
"share": False,
|
29 |
"debug": False,
|
30 |
"show_api": False,
|
31 |
"pwa": True,
|