Skip to content

Conversation

injectives
Copy link
Contributor

@injectives injectives commented Jun 30, 2025

This update introduces support for Neo4j Vector types together with Bolt 6.0.

The diagram below illustrates the new types.

classDiagram
    class Vector {
        +elementType() Class<?>
        +length() int
    }

    class ByteVector {
        +toArray() byte[]
    }

    class ShortVector {
        +toArray() short[]
    }

    class IntVector {
        +toArray() int[]
    }

    class LongVector {
        +toArray() long[]
    }

    class FloatVector {
        +toArray() float[]
    }

    class DoubleVector {
        +toArray() double[]
    }

    Vector <|-- ByteVector
    Vector <|-- ShortVector
    Vector <|-- IntVector
    Vector <|-- LongVector
    Vector <|-- FloatVector
    Vector <|-- DoubleVector
Loading

This update introduces support for Neo4j Vector types together with Bolt 6.0.

The diagram below illustrates the new types.

```mermaid
classDiagram
    class Vector {
        +elementType() Class<?>
        +length() int
    }

    class ByteVector {
        +toArray() byte[]
    }

    class ShortVector {
        +toArray() short[]
    }

    class IntVector {
        +toArray() int[]
    }

    class LongVector {
        +toArray() long[]
    }

    class FloatVector {
        +toArray() float[]
    }

    class DoubleVector {
        +toArray() double[]
    }

    Vector <|-- ByteVector
    Vector <|-- ShortVector
    Vector <|-- IntVector
    Vector <|-- LongVector
    Vector <|-- FloatVector
    Vector <|-- DoubleVector
```
Copy link

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Looks good, but it may be worth waiting for a working prerelease build of the database to test against.

@injectives injectives merged commit 3227eed into neo4j:6.x Jul 1, 2025
20 checks passed
@injectives injectives deleted the feature/vector branch July 1, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants