neo4j / neo4j/neo4j-graphrag-python
Should `return_context` be enabled or not by default?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 246
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 11
Description
Part of the benefit of GraphRAG is providing better context for question answering.
When performing GraphRAG.search() the context from the retriever_result is missing, by default. Could we instead default to enabling return_context?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/neo4j_graphrag/generation/graphrag.py#L88 and inspect GraphRAG.search(), return_context, and retriever_result handling. Confirm the intended default and verify that search results include retriever context when the option is not supplied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100