Graph Academy sandbox refusing to connect

@nathan.chander

Hi Nathan,

The vector index should be created when you visit the Vector Search lesson (https://graphacademy.neo4j.com/courses/genai-integration-langchain/2-vectors/1-vector-search/).

It could be that your sandbox expired and a new one was recreated for you, as such it wouldnt have the index.

You can import the data and create the index by running this Cypher script in the sandbox:

LOAD CSV WITH HEADERS
FROM 'https://data.neo4j.com/rec-embed/movie-plot-embeddings-1k.csv'
AS row
MATCH (m:Movie {movieId: row.movieId})
CALL db.create.setNodeVectorProperty(m, 'plotEmbedding', apoc.convert.fromJsonList(row.embedding));

CREATE VECTOR INDEX moviePlots IF NOT EXISTS
FOR (m:Movie)
ON m.plotEmbedding
OPTIONS {indexConfig: {
 `vector.dimensions`: 1536,
 `vector.similarity_function`: 'cosine'
}};

Hopefully this helps,

Martin

1 Like

Hi Martin,
that is exactly what happened. Thanks, this does recreate it. I was hoping it would automatically do that as it was recreating the sandbox for me when I would go back to the lesson but not the index. Thank you for the help

2 Likes