Skip to content

function defineIndexer register indexer action in new version 1.17 as retriever => GenkitError: INVALID_ARGUMENT #3471

@steperjayway

Description

@steperjayway

Describe the bug
With version 1.17.0 ai.defineIndexer fail at startup with error: GenkitError: INVALID_ARGUMENT: action type (retriever) does not match type on action (indexer)

Fault is found in the js/ai/src/retreiver.ts line 195:
Incorrect in version 1.17.0: registry.registerAction('retriever', r);

Should be registry.registerAction('indexer', r);

https://github.com/firebase/genkit/blame/df0d1840805a063227748d8f80a98942021ed88d/js/ai/src/retriever.ts#L195

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions