forked from kaijiezhu11/SearchAnything
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (22 loc) · 683 Bytes
/
config.py
File metadata and controls
30 lines (22 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
__version__ = "1.0.0"
DATA_DIR = "./data"
INDEX_PATH = {
'text': {'semantic': 'data/text_semantic.index',},
'image': {'semantic': 'data/image_semantic.index',},
}
BM25_INDEX_PATH = 'data/bm25.pkl'
DOCID_LIST_PATH = 'data/docid_list.pkl'
CONTENT_LIST_PATH = 'data/content_list.pkl'
DB_PATH = 'data/database.db'
MONITORED_DIRS_PATH = 'data/monitor_dirs.pickle'
CHANGE_FILES = "data/changes.txt"
DATA_TYPES = ["text", "image"]
TEXT_TYPES = ["pdf", "txt", "md"]
IMAGE_TYPES = ["png", "jpg", "jpeg"]
TEXT_EMBEDDING_MODELS = [
"sentence-transformers/all-mpnet-base-v2",
"sentence-transformers/all-MiniLM-L6-v2",
]
IMAGE_EMBEDDING_MODELS = [
"clip-ViT-B-32",
]