Skip to content

Commit 0e8c830

Browse files
Merge branch 'STAGING' into DEV
2 parents bcff967 + d89e70a commit 0e8c830

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ 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"
38-
39-
```
4038
You can then run Docker Compose to build and start all components:
4139
```bash
4240
docker-compose up --build
@@ -60,7 +58,7 @@ You can of course combine all (local, youtube, wikipedia, s3 and gcs) or remove
6058
### Chat Modes
6159

6260
By default,all of the chat modes will be available: vector, graph_vector, graph, fulltext, graph_vector_fulltext , entity_vector and global_vector.
63-
By default,all of the chat modes will be available: vector, graph_vector, graph, fulltext, graph_vector_fulltext , entity_vector and global_vector.
61+
6462
If none of the mode is mentioned in the chat modes variable all modes will be available:
6563
```env
6664
VITE_CHAT_MODES=""
@@ -103,7 +101,7 @@ Alternatively, you can run the backend and frontend separately:
103101
To deploy the app and packages on Google Cloud Platform, run the following command on google cloud run:
104102
```bash
105103
# Frontend deploy
106-
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"
104+
gcloud run deploy dev-frontend
107105
source location current directory > Frontend
108106
region : 32 [us-central 1]
109107
Allow unauthenticated request : Yes

backend/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ graphdatascience==1.12
5858
Secweb==1.11.0
5959
ragas==0.2.6
6060
rouge_score==0.1.2
61-
langchain-neo4j==0.2.0
61+
langchain-neo4j==0.2.0
62+

backend/src/graphDB_dataAccess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,5 +535,4 @@ def update_node_relationship_count(self,document_name):
535535
"nodeCount" : nodeCount,
536536
"relationshipCount" : relationshipCount
537537
}
538-
539538
return response

backend/src/llm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ async def get_graph_document_list(
191191
return graph_document_list
192192

193193

194+
194195
async def get_graph_from_llm(model, chunkId_chunkDoc_list, allowedNodes, allowedRelationship, additional_instructions=None):
195196
try:
196197
llm, model_name = get_llm(model)

backend/src/make_relationships.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def merge_relationship_between_chunk_and_entites(graph: Neo4jGraph, graph_docume
3737

3838

3939
def create_chunk_embeddings(graph, chunkId_chunkDoc_list, file_name):
40-
4140
isEmbedding = os.getenv('IS_EMBEDDING')
4241

4342
embeddings, dimension = EMBEDDING_FUNCTION , EMBEDDING_DIMENSION

frontend/src/components/Content.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ const Content: React.FC<ContentProps> = ({
715715
setshowExpirationModal(true);
716716
} else if (largeFileExists && isGCSActive) {
717717
setshowConfirmationModal(true);
718+
} else if (largeFileExists && isGCSActive) {
719+
setshowExpirationModal(true);
718720
} else {
719721
handleGenerateGraph(selectedRows.filter((f) => isFileReadyToProcess(f, false)));
720722
}
@@ -738,7 +740,7 @@ const Content: React.FC<ContentProps> = ({
738740
} else if (expiredFileExists && isGCSActive) {
739741
setshowExpirationModal(true);
740742
} else {
741-
handleGenerateGraph(filesData.filter((f) => f.status === 'New' || f.status === 'Ready to Reprocess'));
743+
handleGenerateGraph(filesData.filter((f) => isFileReadyToProcess(f, false)));
742744
}
743745
}
744746
};
@@ -799,6 +801,19 @@ const Content: React.FC<ContentProps> = ({
799801
></ConfirmationDialog>
800802
</Suspense>
801803
)}
804+
{showExpirationModal && filesForProcessing.length && (
805+
<Suspense fallback={<FallBackDialog />}>
806+
<ConfirmationDialog
807+
open={showExpirationModal}
808+
largeFiles={filesForProcessing}
809+
extractHandler={handleGenerateGraph}
810+
onClose={() => setshowExpirationModal(false)}
811+
loading={extractLoading}
812+
selectedRows={childRef.current?.getSelectedRows() as CustomFile[]}
813+
isLargeDocumentAlert={false}
814+
></ConfirmationDialog>
815+
</Suspense>
816+
)}
802817
{showDeletePopUp && (
803818
<DeletePopUp
804819
open={showDeletePopUp}

frontend/src/components/Layout/PageLayout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ const PageLayout: React.FC = () => {
125125
}
126126
};
127127
// To update credentials if environment values differ
128-
129128
const updateSessionIfNeeded = (envCredentials: any, storedSession: string) => {
130129
try {
131130
const storedCredentials = JSON.parse(storedSession);

0 commit comments

Comments
 (0)