Skip to content

Commit ccf8f60

Browse files
authoredJul 12, 2024
2 parents 083f487 + 616eb08 commit ccf8f60

File tree

80 files changed

+5534
-3556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5534
-3556
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
# Byte-compiled / optimized / DLL files
23
__pycache__/
34
*.py[cod]
@@ -167,4 +168,4 @@ google-cloud-cli-469.0.0-linux-x86_64.tar.gz
167168
/backend/src/chunks
168169
/backend/merged_files
169170
/backend/chunks
170-
google-cloud-cli-479.0.0-linux-x86_64.tar.gz
171+
google-cloud-cli-479.0.0-linux-x86_64.tar.gz

‎README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ DIFFBOT_API_KEY="your-diffbot-key"
4040

4141
if you only want OpenAI:
4242
```env
43-
LLM_MODELS="gpt-3.5,gpt-4o"
43+
LLM_MODELS="diffbot,openai-gpt-3.5,openai-gpt-4o"
4444
OPENAI_API_KEY="your-openai-key"
4545
```
4646

@@ -70,6 +70,18 @@ GOOGLE_CLIENT_ID="xxxx"
7070

7171
You can of course combine all (local, youtube, wikipedia, s3 and gcs) or remove any you don't want/need.
7272

73+
### Chat Modes
74+
75+
By default,all of the chat modes will be available: vector, graph+vector and graph.
76+
If none of the mode is mentioned in the chat modes variable all modes will be available:
77+
```env
78+
CHAT_MODES=""
79+
```
80+
81+
If however you want to specifiy the only vector mode or only graph mode you can do that by specifying the mode in the env:
82+
```env
83+
CHAT_MODES="vector,graph+vector"
84+
```
7385

7486
#### Running Backend and Frontend separately (dev environment)
7587
Alternatively, you can run the backend and frontend separately:
@@ -134,12 +146,21 @@ Allow unauthenticated request : Yes
134146
| BACKEND_API_URL | Optional | http://localhost:8000 | URL for backend API |
135147
| BLOOM_URL | Optional | https://workspace-preview.neo4j.io/workspace/explore?connectURL={CONNECT_URL}&search=Show+me+a+graph&featureGenAISuggestions=true&featureGenAISuggestionsInternal=true | URL for Bloom visualization |
136148
| REACT_APP_SOURCES | Optional | local,youtube,wiki,s3 | List of input sources that will be available |
137-
| LLM_MODELS | Optional | diffbot,gpt-3.5,gpt-4o | Models available for selection on the frontend, used for entities extraction and Q&A Chatbot |
149+
| LLM_MODELS | Optional | diffbot,openai-gpt-3.5,openai-gpt-4o | Models available for selection on the frontend, used for entities extraction and Q&A
150+
| CHAT_MODES | Optional | vector,graph+vector,graph | Chat modes available for Q&A
138151
| ENV | Optional | DEV | Environment variable for the app |
139152
| TIME_PER_CHUNK | Optional | 4 | Time per chunk for processing |
140153
| CHUNK_SIZE | Optional | 5242880 | Size of each chunk of file for upload |
141154
| GOOGLE_CLIENT_ID | Optional | | Client ID for Google authentication |
142155
| GCS_FILE_CACHE | Optional | False | If set to True, will save the files to process into GCS. If set to False, will save the files locally |
156+
| ENTITY_EMBEDDING | Optional | False | If set to True, It will add embeddings for each entity in database |
157+
| LLM_MODEL_CONFIG_azure_ai_<azure_deployment_name> | Optional | | Set azure config as - azure_deployment_name,azure_endpoint or base_url,azure_api_key,api_version|
158+
| LLM_MODEL_CONFIG_groq_<model_name> | Optional | | Set groq config as - model_name,base_url,groq_api_key |
159+
| LLM_MODEL_CONFIG_anthropic_<model_name> | Optional | | Set anthropic config as - model_name,anthropic_api_key |
160+
| LLM_MODEL_CONFIG_fireworks_<model_name> | Optional | | Set fireworks config as - model_name,fireworks_api_key |
161+
| LLM_MODEL_CONFIG_bedrock_<model_name> | Optional | | Set bedrock config as - model_name,aws_access_key_id,aws_secret__access_key,region_name |
162+
| LLM_MODEL_CONFIG_ollama_<model_name> | Optional | | Set ollama config as - model_name,model_local_url |
163+
143164

144165

145166

0 commit comments

Comments
 (0)
Please sign in to comment.