Skip to content

knowledge2character produces output file with wrong format.  #14

@trojanMcAfee

Description

@trojanMcAfee

Due to the workaround mentioned here, I had to convert a PDF file to knowledge using node.

That created a file which holds an object (from folder2knowledge.js):

const output = {
  documents: docs,
  chunks: chks
};

When running knowledge2character.js, it creates a new character.json file holding that object as knowledge, but when running the agent with pnpm start --character="characters/<character>.character.json", it fails with a parsing error since it's expecting an array for knowledge instead of an object.

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