Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vector indexing schema components #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions v1/examples/create_example.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE
(c:Person {name:'Helen', age:29, occupation:'student'}),
(d:Person :Student {name:'Bob', interests: ['programming', 'math']}),
(e:School {title: 'School 1', status: Status::Good, location: point({x:1, y:2, z:3, crs:'wgs-84-3d'})}),
(f:Person {name: 'Phil', age:33, embedding:[1.0, 2.0, 3.0], occupation:'president'}),
(a)-[:IS_FAMILY {since:2015}]->(b),
(a)-[:IS_FAMILY {since: 2010}]->(c),
(b)-[:IS_FAMILY {since:2015}]->(c),
Expand All @@ -17,6 +18,7 @@ CREATE INDEX ON :Student;
CREATE INDEX ON :Person(name);
CREATE POINT INDEX ON :School(location);
CREATE TEXT INDEX personTextIndex ON :Person;
CREATE VECTOR INDEX embeddingVectorIndex ON :Person(embedding) WITH CONFIG {"capacity": 10, "dimension": 3};

CREATE EDGE INDEX ON :IS_STUDENT;
CREATE EDGE INDEX ON :IS_FAMILY(since);
Expand Down
Loading