›Agents: Similarity Search
2.8 · Lesson (Optional)

Agents: Similarity Search

Similarity Search finds text by meaning, not just by exact words. It compares a question with text in your graph and returns the closest matches. Use it when people may describe the same thing in different ways.

Complete the optional Prepare data for agent tools lesson, or make sure you have a running Aura instanceA single Neo4j database running in Aura. with text to search. You also need permission to create an agent and the temporary workshop OpenAI API key from the instructor. This lesson prepares embeddingsInformation represented as a numerical vector, positioned so that similar information sits close together. and a vector indexA structure over a vector property. The database searches it to find the vectors nearest a given one, rather than comparing every vector stored., then adds a Similarity Search tool to an agent.