1. Learn
  2. /
  3. Courses
  4. /
  5. Graph RAG with LangChain and Neo4j

Connected

Exercise

Creating a vector index

The 'text' properties on our Line nodes are perfect for generating embeddings that answer open-ended questions about the play.

Use the vector store provided by langchain-neo4j to create a vector index by embedding the 'text' property of the Line nodes.

Instructions

100 XP
  • Use the correct class to create a vector index from an existing graph of nodes and relationships.
  • Instruct the class to store the embeddings in the 'embedding' node property.
  • Instruct the class to create embeddings in the 'text' node property.