Skip to content

KUZU_GENERATION_TEMPLATE replaces don't work #8

Open
@daaain

Description

@daaain

I wanted to add some custom instructions (as I need to get all the node properties not just the id) and while poking around the code I found out that neither of the replace()s for KUZU_GENERATION_TEMPLATE actually match anything.

I verified in the final generated prompt sent to the LLM that it was just the base CYPHER_GENERATION_TEMPLATE without any mentions of Kuzu Cypher or the KUZU_EXTRA_INSTRUCTIONS.

I guess something like this would work?

KUZU_GENERATION_TEMPLATE = CYPHER_GENERATION_TEMPLATE.replace(
    "Cypher", "Kuzu Cypher"
).replace("Task: ", KUZU_EXTRA_INSTRUCTIONS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions