-
Notifications
You must be signed in to change notification settings - Fork 2
/
.env.sample
107 lines (87 loc) · 4.9 KB
/
.env.sample
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
PORT=8000
#Azure OpenAI Setting
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_Deployment=gpt-4o-mini
AZURE_OPENAI_EMBEDDING_Deployment=text-embedding-3-small
AZURE_OPENAI_ENDPOINT=https://[name].openai.azure.com/
AZURE_OPENAI_API_VERSION=2023-05-15
# Don't modify the following
OPENAI_API_VERSION=2023-12-01-preview
OPENAI_API_TYPE=azure
# Azure Document Intellenigence
DOC_AI_BASE=https://[name].cognitiveservices.azure.com/
DOC_AI_KEY=
#Azure AI Search
AZURE_SEARCH_ENDPOINT=https://[name].search.windows.net
AZURE_SEARCH_API_KEY=
AZURE_SEARCH_API_VERSION="2023-11-01"
USE_SUB_QUERY_ENGINE = False
#Default Storage. Empty value means temporary storage, otherwise set full path of your storage
#On Linux Dokcer, it can be /app/data, ./data
#On Windows, it can be C:\\data
DEFAULT_STORAGE = ''
#Dev Experiment.
#Choose SelfHost for CSV Query Engine, Recursive Retriver, Knowledge Graph, Tree Mode Sumamrize. OLLAMA works on them.
#Selfhost LMSTUDIO build is okay, query sometimes Empty Response on Llamaindex bug. But it indeeds process the query on LMStudio.USE_LMSTUDIO = 'False'
USE_LMSTUDIO = 'False'
USE_OLLAMA = 'False'
##Optional: SelfHost LM-STUDIO Endpoint
LLAMACPP_URL = 'http://localhost:8081/v1'
LLAMACPP_MODEL = ""
LLAMACPP_API_KEY = ""
#Optional: SelfHost OLLAMA Endpoint
OLLAMA_MODEL = 'llama3.1:latest'
OLLAMA_URL = ''
#GraphRAG Service
GRAPHRAG_ENDPOINT=https://[name].azure-api.net
GRAPHRAG_API_KEY=
#CSV Query Engine
Max_Output_Columns = '100'
Max_Output_Rows = '100'
#This is for General Chat Mode
Default_System_Message_Long = "You are a helpful AI assistant. You can help users with a variety of tasks, such as answering questions, providing recommendations, and assisting with tasks. You can also provide information on a wide range of topics from the retieved documents. If you are unsure about something, you can ask for clarification. Please be polite and professional at all times. If you have any questions, feel free to ask."
Default_System_Message = "You are a helpful AI assistant. Answer questions clearly with only necessary words and completed sentences."
# This is for proofreading
Proofread_System_Message="Criticize the proofread content, especially for wrong words. Only use 当社の用字・用語の基準, 送り仮名の付け方, 現代仮名遣い, 接続詞の使い方 ,外来語の書き方,公正競争規約により使用を禁止されている語 製品の取扱説明書等において使用することはできない, 常用漢字表に記載されていない読み方, and 誤字 proofread rules, don't use other rules those are not in the retrieved documents. Pay attention to some known issues: はじめて, もっとも, または->又は, 「ただし」という接続詞は原則として仮名で表記するため,「又は」という接続詞は原則として漢字で表記するため。また、「又は」は、最後の語句に“など”、「等(とう)」又は「その他」を付けてはならない, 優位性を意味する語. Firstly show 原文, use bold text to point out every incorrect issue, and then give 校正理由, respond in Japanese. Finally give 修正後の文章, use bold text for modified text. If everything is correct, tell no issues, and don't provide 校正理由 or 修正後の文章."
Content_Prefix="以下の文章を校正してください: "
Sample_Content="今回は半導体製造装置セクターの最近の動きを分析します。このセクターが成長性のあるセクターであるという意見は変えません。また、後工程(テスタ、ダイサなど)は2023年4-6月期、前工程(ウェハプロセス装置)は7-9月期または 10-12月期等 で大底を打ち、その後は回復、再成長に向かうと思われます。但し 、足元ではいくつか問題も出ています。"
# Don't modify the following if not sure
GRADIO_ANALYTICS_ENABLED=False
LOG_LEVEL='ERROR'
Predict_Concurrency='10'
Build_Concurrency='3'
Max_Queue_Size='100'
QueryEngineTool_Name=''
QueryEngineTool_Description=''
#Chat Settings, set Individual_Chat to 'False' when more than two index Tabs are enabled
Individual_Chat= 'False'
#Gradio Tab Settings
AdvChatBot_Tab = 'True'
BuildAzureIndex_Tab='True'
BuildKGIndex_Tab='True'
BuildRRIndex_Tab='True'
BuildGraphRAGIndex_Tab='True'
BuildSummaryIndex_Tab='True'
CSVQueryEngine_Tab='True'
Proofread_Tab='True'
AdvProofread_Tab='True'
ProofreadAddin_Tab = 'True'
#Grapdio API Settings
AdvChatBot_API = 'True'
BuildAzureIndex_API='True'
BuildKGIndex_API='True'
BuildRRIndex_API='True'
BuildGraphRAGIndex_API='True'
BuildSummaryIndex_API='True'
CSVQueryEngine_API='True'
Proofread_API = 'True'
AdvProofread_API = 'True'
ProofreadAddin_API = 'True'
#Default Theme: light, dark, system
Default_Theme = 'dark'
#OpenAPI Settings
Show_OpenAPI_INFO = 'True'
Enable_OpenAPI = 'True'
Default_Index_Type = 'Knowledge Graph'
Default_Index_Name = 'KGWORK02'
Default_Streaming = 'False'