Skip to content

Commit d89e70a

Browse files
Merge branch 'main' into STAGING
2 parents ac64f33 + 48d58af commit d89e70a

File tree

7 files changed

+269
-42
lines changed

7 files changed

+269
-42
lines changed

README.md

+3-20
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,14 @@ If you are using Neo4j Desktop, you will not be able to use the docker-compose b
3131
### Local deployment
3232
#### Running through docker-compose
3333
By default only OpenAI and Diffbot are enabled since Gemini requires extra GCP configurations.
34-
Accoroding to enviornment we are configuring the models which is indicated by VITE_LLM_MODELS_PROD variable we can configure model based on our need.
34+
According to enviornment we are configuring the models which is indicated by VITE_LLM_MODELS_PROD variable we can configure model based on our need.
3535
EX:
3636
```env
3737
VITE_LLM_MODELS_PROD="openai_gpt_4o,openai_gpt_4o_mini,diffbot,gemini_1.5_flash"
3838
```
39-
According to the environment, we are configuring the models which indicated by VITE_LLM_MODELS_PROD variable we can configure models based on our needs.
40-
EX:
41-
```env
42-
VITE_LLM_MODELS_PROD="openai_gpt_4o,openai_gpt_4o_mini,diffbot,gemini_1.5_flash"
43-
```
44-
45-
if you only want OpenAI:
46-
```env
47-
VITE_LLM_MODELS_PROD="diffbot,openai-gpt-3.5,openai-gpt-4o"
48-
VITE_LLM_MODELS_PROD="diffbot,openai-gpt-3.5,openai-gpt-4o"
4939
OPENAI_API_KEY="your-openai-key"
5040
```
5141
52-
if you only want Diffbot:
53-
```env
54-
VITE_LLM_MODELS_PROD="diffbot"
55-
VITE_LLM_MODELS_PROD="diffbot"
56-
DIFFBOT_API_KEY="your-diffbot-key"
57-
```
58-
5942
You can then run Docker Compose to build and start all components:
6043
```bash
6144
docker-compose up --build
@@ -79,7 +62,7 @@ You can of course combine all (local, youtube, wikipedia, s3 and gcs) or remove
7962
### Chat Modes
8063

8164
By default,all of the chat modes will be available: vector, graph_vector, graph, fulltext, graph_vector_fulltext , entity_vector and global_vector.
82-
By default,all of the chat modes will be available: vector, graph_vector, graph, fulltext, graph_vector_fulltext , entity_vector and global_vector.
65+
8366
If none of the mode is mentioned in the chat modes variable all modes will be available:
8467
```env
8568
VITE_CHAT_MODES=""
@@ -123,7 +106,7 @@ Alternatively, you can run the backend and frontend separately:
123106
To deploy the app and packages on Google Cloud Platform, run the following command on google cloud run:
124107
```bash
125108
# Frontend deploy
126-
gcloud run deploy dev-frontend --set-env-vars "VITE_BACKEND_API_URL=" --set-env-vars "VITE_FRONTEND_HOSTNAME=hostname.us-central1.run.app" --set-env-vars "VITE_SEGMENT_API_URL=https://cdn.segment.com/v1/projects/4SGwdwzuDm5WkFvQtz7D6ATQlo14yjmW/settings"
109+
gcloud run deploy dev-frontend
127110
source location current directory > Frontend
128111
region : 32 [us-central 1]
129112
Allow unauthenticated request : Yes

backend/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ graphdatascience==1.12
5858
Secweb==1.11.0
5959
ragas==0.2.6
6060
rouge_score==0.1.2
61-
langchain-neo4j==0.1.1
61+
langchain-neo4j==0.1.1

backend/score.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from Secweb.XFrameOptions import XFrame
3131
from fastapi.middleware.gzip import GZipMiddleware
3232
from src.ragas_eval import *
33-
from starlette.types import ASGIApp, Receive, Scope, Send
33+
from starlette.types import ASGIApp, Message, Receive, Scope, Send
3434
from langchain_neo4j import Neo4jGraph
3535

3636
logger = CustomLogger()

backend/src/graphDB_dataAccess.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,5 +520,5 @@ def update_node_relationship_count(self,document_name):
520520
"nodeCount" : nodeCount,
521521
"relationshipCount" : relationshipCount
522522
}
523-
523+
524524
return response

frontend/src/components/Layout/PageLayout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ const PageLayout: React.FC = () => {
107107
}
108108
};
109109
// To update credentials if environment values differ
110-
111110
const updateSessionIfNeeded = (envCredentials: any, storedSession: string) => {
112111
try {
113112
const storedCredentials = JSON.parse(storedSession);

frontend/src/context/UserCredentials.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const UserCredentialsWrapper: FunctionComponent<Props> = (props) => {
3636
const [errorMessage, setErrorMessage] = useState<string>('');
3737
const [showDisconnectButton, setShowDisconnectButton] = useState<boolean>(false);
3838
const [isGCSActive, setIsGCSActive] = useState<boolean>(false);
39-
4039
const value = {
4140
userCredentials,
4241
setUserCredentials,

0 commit comments

Comments
 (0)