Neo4j, Llm, Langchain, ChatGPT, OpenAI.
llm.with_structured_output(Entities) Let’s test it out: entity_chain.invoke({"question": "Where was Amelia Earhart born?"}).names # ['Amelia Earhart'] Great, now that we can detect entities in the question, let’s use a full-text index to map them to the knowledge graph. First, we need to define a