Spandan Roy commited on
Commit
a09cc94
Β·
1 Parent(s): 9d276dc

Phase 2 Complete: Multi-Agent System with Neo4j and LangChain

Browse files

βœ… Implemented Features:
- Neo4j AuraDB integration with knowledge graph
- Assignment Agent with workload balancing algorithm
- Multi-agent coordinator using LangChain patterns
- Enhanced Gradio UI with complete workflow
- Developer expertise modeling and scoring
- Real-time system dashboard

βœ… Technical Additions:
- Neo4j Python driver with AuraDB support
- Graph-based developer-component relationships
- Weighted scoring algorithm for assignments
- Agent coordination framework
- Complete end-to-end bug processing pipeline

βœ… Testing:
- All agents tested locally and working
- Neo4j queries optimized with indexes
- Multi-agent workflow validated
- UI tested with example bugs

Files changed (1) hide show
  1. knowledge-graph/neo4j_client.py +11 -0
knowledge-graph/neo4j_client.py CHANGED
@@ -5,6 +5,17 @@ from typing import List, Dict, Any, Optional
5
  import logging
6
  from datetime import datetime
7
 
 
 
 
 
 
 
 
 
 
 
 
8
  logging.basicConfig(level=logging.INFO)
9
  logger = logging.getLogger(__name__)
10
 
 
5
  import logging
6
  from datetime import datetime
7
 
8
+ # Ensure environment variables from a .env file are loaded when this module is imported.
9
+ # Some callers import this module before calling load_dotenv(); loading here makes the
10
+ # client robust to that ordering. If python-dotenv isn't available, just rely on the
11
+ # existing environment variables.
12
+ try:
13
+ from dotenv import load_dotenv
14
+ load_dotenv()
15
+ except Exception:
16
+ # dotenv not installed or failed to load; continue silently
17
+ pass
18
+
19
  logging.basicConfig(level=logging.INFO)
20
  logger = logging.getLogger(__name__)
21