Skip to content

The hnsw plugin is using a old version of genkit and won't work with the current one #311

@jruokola

Description

@jruokola

Affected plugin(s)

[ ] Anthropic
[ ] Azure OpenAI
[ ] Cohere
[ ] Convex
[ ] Groq
[ ] Mistral
[ ] OpenAI
[x] HNSW
Describe the bug
The genkitx-hnsw plugin has a peer dependency requirement for @genkit-ai/core@^0.5.0. This conflicts with projects using newer versions of the core Genkit framework (e.g., v1.7.0), resulting in an ERESOLVE error during installation via npm.

To Reproduce
Steps to reproduce the behavior:

Initialize a Genkit project using @genkit-ai/core version 1.7.0 or similar recent version.
Run npm install genkitx-hnsw.
Observe the ERESOLVE unable to resolve dependency tree error in the npm output, specifically citing the peer dependency conflict between [email protected] (requiring @genkit-ai/core@^0.5.0) and the project's installed @genkit-ai/[email protected].
Expected behavior
The genkitx-hnsw plugin should either be updated to support newer versions of @genkit-ai/core or clearly state its compatibility range. Ideally, installation should succeed without requiring --force or --legacy-peer-deps.

Plugin(s) version:
[email protected]

Genkit version:
@genkit-ai/[email protected]

Additional context
This incompatibility prevents the use of the HNSW plugin in projects keeping the core Genkit framework up-to-date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions