Skip to content

Commit d9dcfc5

Browse files
Merge branch 'main' into STAGING
2 parents 438acc9 + 8419995 commit d9dcfc5

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ If you are using Neo4j Desktop, you will not be able to use the docker-compose b
3232
#### Running through docker-compose
3333
By default only OpenAI and Diffbot are enabled since Gemini requires extra GCP configurations.
3434
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.
35+
3536
EX:
3637
```env
3738
VITE_LLM_MODELS_PROD="openai_gpt_4o,openai_gpt_4o_mini,diffbot,gemini_1.5_flash"
39+
3840
You can then run Docker Compose to build and start all components:
3941
```bash
4042
docker-compose up --build
@@ -67,6 +69,7 @@ VITE_CHAT_MODES=""
6769
If however you want to specify the only vector mode or only graph mode you can do that by specifying the mode in the env:
6870
```env
6971
VITE_CHAT_MODES="vector,graph"
72+
VITE_CHAT_MODES="vector,graph"
7073
```
7174

7275
#### Running Backend and Frontend separately (dev environment)

backend/src/graphDB_dataAccess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ def update_node_relationship_count(self,document_name):
535535
"nodeCount" : nodeCount,
536536
"relationshipCount" : relationshipCount
537537
}
538+
538539
return response
539540

540541
def get_nodelabels_relationships(self):

backend/src/llm.py

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

193193

194-
195194
async def get_graph_from_llm(model, chunkId_chunkDoc_list, allowedNodes, allowedRelationship, additional_instructions=None):
196195
try:
197196
llm, model_name = get_llm(model)

frontend/src/components/Content.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const Content: React.FC<ContentProps> = ({
6060
const [extractLoading, setIsExtractLoading] = useState<boolean>(false);
6161
const { setUserCredentials, userCredentials, setConnectionStatus, isGdsActive, isReadOnlyUser, isGCSActive } =
6262
useCredentials();
63-
6463
const [retryFile, setRetryFile] = useState<string>('');
6564
const [retryLoading, setRetryLoading] = useState<boolean>(false);
6665
const [showRetryPopup, toggleRetryPopup] = useReducer((state) => !state, false);
@@ -704,7 +703,6 @@ const Content: React.FC<ContentProps> = ({
704703
if (selectedRows?.length) {
705704
const expiredFilesExists = selectedRows.some(
706705
(c) => isFileReadyToProcess(c, true) && isExpired((c?.createdAt as Date) ?? new Date())
707-
);
708706
const largeFileExists = selectedRows.some(
709707
(c) => isFileReadyToProcess(c, true) && typeof c.size === 'number' && c.size > largeFileSize
710708
);
@@ -807,6 +805,19 @@ const Content: React.FC<ContentProps> = ({
807805
></ConfirmationDialog>
808806
</Suspense>
809807
)}
808+
{showExpirationModal && filesForProcessing.length && (
809+
<Suspense fallback={<FallBackDialog />}>
810+
<ConfirmationDialog
811+
open={showExpirationModal}
812+
largeFiles={filesForProcessing}
813+
extractHandler={handleGenerateGraph}
814+
onClose={() => setshowExpirationModal(false)}
815+
loading={extractLoading}
816+
selectedRows={childRef.current?.getSelectedRows() as CustomFile[]}
817+
isLargeDocumentAlert={false}
818+
></ConfirmationDialog>
819+
</Suspense>
820+
)}
810821
{showDeletePopUp && (
811822
<DeletePopUp
812823
open={showDeletePopUp}

frontend/src/context/UserCredentials.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const UserCredentialsWrapper: FunctionComponent<Props> = (props) => {
3939
const [showDisconnectButton, setShowDisconnectButton] = useState<boolean>(false);
4040
const [isGCSActive, setIsGCSActive] = useState<boolean>(false);
4141
const [chunksToBeProces, setChunksToBeProces] = useState<number>(50);
42-
4342
const value = {
4443
userCredentials,
4544
setUserCredentials,

0 commit comments

Comments
 (0)