forked from SylphAI-Inc/GithubChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (29 loc) · 770 Bytes
/
config.py
File metadata and controls
32 lines (29 loc) · 770 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
31
32
from adalflow import OpenAIClient
configs = {
"embedder": {
"batch_size": 100,
"model_client": OpenAIClient, # make sure to initialize the model client later
"model_kwargs": {
"model": "text-embedding-3-small",
"dimensions": 256,
"encoding_format": "float",
},
},
"retriever": {
"top_k": 20,
},
"generator": {
"model_client": OpenAIClient,
"model_kwargs": {
"model": "gpt-4o-mini",
"temperature": 0.3,
"stream": False,
},
},
"text_splitter": {
"split_by": "word",
"chunk_size": 400,
"chunk_overlap": 100,
},
}
DEFAULT_GITHUB_REPO = "https://github.com/SylphAI-Inc/AdalFlow"