Skip to content

Feature/002 - #15

Open
araadhay-py wants to merge 5 commits into
ResearchifyLabs:mainfrom
araadhay-py:feature/002
Open

araadhay-py wants to merge 5 commits into
ResearchifyLabs:mainfrom
araadhay-py:feature/002

Conversation

@araadhay-py

Copy link
Copy Markdown
Contributor

What does this PR do?

Why?

Checklist

  • Tests pass (PYTHONPATH=src:tests python -m unittest discover -s tests -p 'test_*.py')
  • New code has tests (if applicable)
  • CHANGELOG.md updated under [Unreleased] (if user-facing)

…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 ritesh-researchify-labs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checks are failing - please look

Comment thread examples/run.py
if isinstance(payload, dict) and payload.get("files"):
selected = [f for f in payload.get("files", []) if isinstance(f, str)]
except Exception:
selected = []

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont eat exceptions blindly

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please proide details of the PR in the PR template

Comment thread examples/neo4j_demo.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the difference between this file and complete neo4j demo - why do we need two files ?

Comment thread examples/run.py
backend = InMemoryBackend()
vector_index = InMemoryVectorIndex()
graph_store = InMemoryGraphStore()
if _state["backend"] and _state["graph_store"] and _state["vector_index"]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please explain rationale for this change

Comment thread examples/viewer.html

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 - make the colors nuetral on home page (black #1a1a1a and white)
2 -"Upload and Run" button is overlapping with the text box above. please move a bit bottom

Image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this file changed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this file changed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use only unittest and not pytest

@araadhay-py araadhay-py reopened this Apr 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants