Skip to content

Commit 0a22459

Browse files
Merge branch 'STAGING' into DEV
2 parents 01941a4 + 8b169f5 commit 0a22459

File tree

10 files changed

+8
-14
lines changed

10 files changed

+8
-14
lines changed

backend/example.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ CHUNKS_TO_BE_CREATED="50"
4848
BEDROCK_EMBEDDING_MODEL="model_name,aws_access_key,aws_secret_key,region_name" #model_name="amazon.titan-embed-text-v1"
4949
LLM_MODEL_CONFIG_bedrock_nova_micro_v1="model_name,aws_access_key,aws_secret_key,region_name" #model_name="amazon.nova-micro-v1:0"
5050
LLM_MODEL_CONFIG_bedrock_nova_lite_v1="model_name,aws_access_key,aws_secret_key,region_name" #model_name="amazon.nova-lite-v1:0"
51-
LLM_MODEL_CONFIG_bedrock_nova_pro_v1="model_name,aws_access_key,aws_secret_key,region_name" #model_name="amazon.nova-pro-v1:0"
51+
LLM_MODEL_CONFIG_bedrock_nova_pro_v1="model_name,aws_access_key,aws_secret_key,region_name" #model_name="amazon.nova-pro-v1:0"

backend/score.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send):
8080
)
8181
await gzip_middleware(scope, receive, send)
8282
app = FastAPI()
83-
8483
app.add_middleware(XContentTypeOptions)
8584
app.add_middleware(XFrame, Option={'X-Frame-Options': 'DENY'})
8685
app.add_middleware(CustomGZipMiddleware, minimum_size=1000, compresslevel=5,paths=["/sources_list","/url/scan","/extract","/chat_bot","/chunk_entities","/get_neighbours","/graph_query","/schema","/populate_graph_schema","/get_unconnected_nodes_list","/get_duplicate_nodes","/fetch_chunktext"])
@@ -353,8 +352,6 @@ async def post_processing(uri=Form(), userName=Form(), password=Form(), database
353352
await asyncio.to_thread(create_communities, uri, userName, password, database)
354353

355354
logging.info(f'created communities')
356-
357-
358355
graph = create_graph_database_connection(uri, userName, password, database)
359356
graphDb_data_Access = graphDBdataAccess(graph)
360357
document_name = ""

backend/src/graphDB_dataAccess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,4 @@ def get_nodelabels_relationships(self):
561561
return node_labels,relationship_types
562562
except Exception as e:
563563
print(f"Error in getting node labels/relationship types from db: {e}")
564-
return []
564+
return []

backend/src/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,13 @@ async def processing_source(uri, userName, password, database, model, file_name,
361361

362362
logging.info('Update the status as Processing')
363363
update_graph_chunk_processed = int(os.environ.get('UPDATE_GRAPH_CHUNKS_PROCESSED'))
364-
365364
# selected_chunks = []
366365
is_cancelled_status = False
367366
job_status = "Completed"
368367
for i in range(0, len(chunkId_chunkDoc_list), update_graph_chunk_processed):
369368
select_chunks_upto = i+update_graph_chunk_processed
369+
if select_chunks_upto > chunk_to_be_processed:
370+
break
370371
logging.info(f'Selected Chunks upto: {select_chunks_upto}')
371372
if len(chunkId_chunkDoc_list) <= select_chunks_upto:
372373
select_chunks_upto = len(chunkId_chunkDoc_list)

backend/src/post_processing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from src.graphDB_dataAccess import graphDBdataAccess
1212
import time
1313

14-
1514
DROP_INDEX_QUERY = "DROP INDEX entities IF EXISTS;"
1615
LABELS_QUERY = "CALL db.labels()"
1716
FULL_TEXT_QUERY = "CREATE FULLTEXT INDEX entities FOR (n{labels_str}) ON EACH [n.id, n.description];"

backend/src/shared/common_fn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@ def get_bedrock_embeddings():
173173
return bedrock_embeddings
174174
except Exception as e:
175175
print(f"An unexpected error occurred: {e}")
176-
raise
176+
raise

frontend/src/components/Content.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const Content: React.FC<ContentProps> = ({
9797
const [viewPoint, setViewPoint] = useState<'tableView' | 'showGraphView' | 'chatInfoView' | 'neighborView'>(
9898
'tableView'
9999
);
100-
101100
const [showDeletePopUp, setShowDeletePopUp] = useState<boolean>(false);
102101
const [deleteLoading, setIsDeleteLoading] = useState<boolean>(false);
103102

@@ -534,9 +533,8 @@ const Content: React.FC<ContentProps> = ({
534533
const handleOpenGraphClick = () => {
535534
const bloomUrl = process.env.VITE_BLOOM_URL;
536535
const uriCoded = userCredentials?.uri.replace(/:\d+$/, '');
537-
const connectURL = `${uriCoded?.split('//')[0]}//${userCredentials?.userName}@${uriCoded?.split('//')[1]}:${
538-
userCredentials?.port ?? '7687'
539-
}`;
536+
const connectURL = `${uriCoded?.split('//')[0]}//${userCredentials?.userName}@${uriCoded?.split('//')[1]}:${userCredentials?.port ?? '7687'
537+
}`;
540538
const encodedURL = encodeURIComponent(connectURL);
541539
const replacedUrl = bloomUrl?.replace('{CONNECT_URL}', encodedURL);
542540
window.open(replacedUrl, '_blank');

frontend/src/components/Layout/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const Header: React.FC<HeaderProp> = ({ chatOnly, deleteOnClick, setOpenConnecti
4242
const { connectionStatus } = useCredentials();
4343
const chatAnchor = useRef<HTMLDivElement>(null);
4444
const [showChatModeOption, setShowChatModeOption] = useState<boolean>(false);
45-
4645
const openChatPopout = useCallback(() => {
4746
let session = localStorage.getItem('neo4j.connection');
4847
const isLoading = getIsLoading(messages);

frontend/src/components/Popups/ConnectionModal/ConnectionModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export default function ConnectionModal({
4444
const [password, setPassword] = useState<string>('');
4545
const [connectionMessage, setMessage] = useState<Message | null>({ type: 'unknown', content: '' });
4646
const { user } = useAuth0();
47-
4847
const {
4948
setUserCredentials,
5049
userCredentials,

frontend/src/context/UsersFiles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const FileContextProvider: FC<FileContextProviderProps> = ({ children }) => {
4343
'enable_hybrid_search_and_fulltext_search_in_bloom',
4444
'materialize_entity_similarities',
4545
'enable_communities',
46+
'graph_schema_consolidation',
4647
]);
4748
const [processedCount, setProcessedCount] = useState<number>(0);
4849
const [postProcessingVal, setPostProcessingVal] = useState<boolean>(false);

0 commit comments

Comments
 (0)