-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
36 lines (24 loc) · 904 Bytes
/
README
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
31
32
33
34
35
36
API:
RERANK API:
Receive: JSON with "hits" and "query", each 'hit' with
qid : ?int
docid : !string
datasetid: !string
content : !string
score : !int|float
Return: Same as Receive
EXPLAIN API:
Receive: JSON with "query" and "metadata" all with type 'str'
Return: 'str' as explanation
ENV:
LLM_API_MODEL: LLM model name
LLM_API_BASE: LLM API base
LLM_API_KEYS: API keys separated by ','
RERANK_WINDOW_SIZE: Metadata number rerank will do rerank
RERANK_STEP_SIZE: Times reranker will do rerank
CACHE_DIR: Flask Cache saving path
CACHE_TIMEOUT: Flask Cache timeout
DB_HOST, DB_PORT, DB_USER, DB_PSWD, DB_NAME: MySQL connection info
TB_DESCRIPTIONS: Table name for descriptions
TB_DESCRIPTIONS_ID: Column name for dataset id
TB_DESCRIPTIONS_DESC: Column name for enhanced descriptions