Step 1: Setting up the environment
Step 2: Imports and Setup for HelixDB
Step 3: Creating the nodes that we will link professors to
Here we start creating all the nodes that we will link a professors to.You can also make a query in
queries.hx to get the ID of the research area if you have the name, but we will store it in Python for simplicity.Sample Data
Create Professor Node
Create Department Node
Create University Node
Create Research Area Nodes
Step 4: Link nodes to the professor
Link Professor to Department
Link Professor to University
Link Professor to Research Area
Step 5: Create Embeddings for the professor
Create Research Area Embedding
Step 6: Lets answer some of the questions we asked in the beginning
- “What professors does X research area?”
- “What professors are working in X University?”
- “What professors are working in X Department?”
- “What professors are working in the X University and are working in X department?”
- “Find me professors doing X research area”
- “I want to find professors working in computer vision, in X university”