Skip to content

Releases: neo4j/graphql

@neo4j/[email protected]

12 Jul 14:06
6e745c2
Compare
Choose a tag to compare

@neo4j/[email protected]

12 Jul 07:31
2264fec
Compare
Choose a tag to compare

Minor Changes

  • #5316 a26f32f Thanks @mjfwebb! - Add @vector directive.

    The directive enables two forms of user input, depending on the index configuration: vector input which in GraphQL is a [Float!], and phrase input which is a String.

    For example to use the @vector directive with a vector index, you would define a type like this:

    type Movie
        @vector(
            indexes: [
                { indexName: "myVectorIndexName", propertyName: "embedding", queryName: "searchForRelatedMovies" }
            ]
        ) {
        title: String!
    }

    To configure a provider to use the GenAI plugin and have phrase input, you would define a type like this:

    type Movie
        @vector(
            indexes: [
                {
                    indexName: "myVectorIndexName"
                    propertyName: "embedding"
                    queryName: "searchForRelatedMovies"
                    provider: OPEN_AI
                }
            ]
        ) {
        title: String!
    }

    The constructor of the Neo4jGraphQL class would need to be updated to include the OpenAI provider under the vector feature like this:

    const neoSchema = new Neo4jGraphQL({
        typeDefs,
        driver,
        features: {
            vector: {
                OpenAI: {
                    token: "my-open-ai-token",
                    model: "text-embedding-3-small",
                },
            },
        },
    });

Patch Changes

@neo4j/[email protected]

12 Jul 14:06
6e745c2
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

12 Jul 07:31
2264fec
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

04 Jul 14:10
b06725d
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

04 Jul 14:10
b06725d
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

26 Jun 13:05
2858218
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

26 Jun 13:05
2858218
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

13 Jun 15:11
802493e
Compare
Choose a tag to compare

Patch Changes

@neo4j/[email protected]

13 Jun 15:11
802493e
Compare
Choose a tag to compare

Patch Changes