you can use a model with a bigger context, e.g. gpt-4-turbo.
but I’d urge you to reevaluate your process. is your graph really such a kitchen sink of random entities and relations? how is it used normally? what’s the manual process here?
maybe instead of a one-shot cypher query, you may be better off using an iterative approach.