Repository navigation
Feature/002 - #15
Feature/002#15araadhay-py wants to merge 5 commits into
Conversation
…tion - Implement Neo4jGraphStore with full GraphStore protocol compliance - Create comprehensive graph model with Cluster, Decision, Topic, Entity, Constraint, Fact, and Initiator nodes - Add idempotent operations using MERGE for safe upserts - Include 7 unique constraints for data integrity - Support batch processing for performance optimization - Add comprehensive error handling and logging - Create complete test suite with 20+ test cases - Add ready-to-run demo with mock and real data support - Update documentation with Neo4j usage examples - Fix Python 3.9 compatibility issues across core modules - Add neo4j dependency to pyproject.toml Files added: - src/decision_graph/backends/neo4j/__init__.py - src/decision_graph/backends/neo4j/stores.py - tests/test_neo4j_graphstore.py - examples/complete_neo4j_demo.py - examples/neo4j_demo.py - NEO4J_IMPLEMENTATION_SUMMARY.md - NEO4J_IMPLEMENTATION_EMAIL.md Files modified: - README.md (Neo4j documentation and examples) - pyproject.toml (neo4j dependency) - src/decision_graph/core/domain.py (Python 3.9 compatibility) - src/decision_graph/enrichment_service.py (Python 3.9 compatibility) - src/decision_graph/retrieval.py (Python 3.9 compatibility) - src/decision_graph/core/decision_trace_profiles.py (Python 3.9 compatibility) The Neo4j backend enables persistent graph storage with powerful Cypher queries for decision analytics while maintaining seamless integration with existing pipeline.
- Merge latest changes from main branch - Include viewer.html and run.py updates - Resolve merge conflicts
ritesh-researchify-labs
left a comment
There was a problem hiding this comment.
checks are failing - please look
| if isinstance(payload, dict) and payload.get("files"): | ||
| selected = [f for f in payload.get("files", []) if isinstance(f, str)] | ||
| except Exception: | ||
| selected = [] |
There was a problem hiding this comment.
dont eat exceptions blindly
There was a problem hiding this comment.
please proide details of the PR in the PR template
There was a problem hiding this comment.
whats the difference between this file and complete neo4j demo - why do we need two files ?
| backend = InMemoryBackend() | ||
| vector_index = InMemoryVectorIndex() | ||
| graph_store = InMemoryGraphStore() | ||
| if _state["backend"] and _state["graph_store"] and _state["vector_index"]: |
There was a problem hiding this comment.
please explain rationale for this change
There was a problem hiding this comment.
attaching a sample implementation of the methods - we need to define how to get the driver
dao.py
|
|
||
|
|
||
| def allowed_decision_types_for_industry(industry_type: str | None) -> list[str]: | ||
| def allowed_decision_types_for_industry(industry_type: Optional[str]) -> list[str]: |
There was a problem hiding this comment.
why this change ?
There was a problem hiding this comment.
why was this file changed
There was a problem hiding this comment.
why was this file changed
There was a problem hiding this comment.
use only unittest and not pytest

What does this PR do?
Why?
Checklist
PYTHONPATH=src:tests python -m unittest discover -s tests -p 'test_*.py')[Unreleased](if user-facing)