I am struggling A LOT for giving ConversationBufferMemory to this chain:
from langchain_openai import ChatOpenAI
from langchain_community.graphs import Neo4jGraph
from langchain.chains import GraphCypherQAChain
from langchain.prompts import PromptTemplate
CYPHER_GENERATION_TEMPLATE = """
You are an expert Neo4j Developer translating user questions into Cypher to answer questions about movies and provide recommendations.
Convert the user's question based on the schema.
Wouldn’t you just want to learn cypher so you can answer your question and many more questions yourself?
MATCH (movie:Movie {title:”Toy Story”})
MATCH (person:Person {name:”Tom Hanks”})
MATCH (movie)<-[rel:ACTED_IN]-(person)
RETURN movie.title as title, person.name, rel.roles as roles