-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme say folder2knowledge si available at npmjs - which it is not #9
Comments
+1 error: |
Same |
same - is there a workaround for adding a knowledge base? |
Yes. you can install as described in the readme:
|
gitpod /workspace/eliza ((v0.1.7-alpha.1)) $ npm install node characterfile/scripts/folder2knowledge.js "C:\Users\XXX\Documents Could you help with this error? |
Try to execute |
+1 None of the workarounds written here worked for me. I'm trying to parse a PDF file into knowledge. |
As another workaround that worked for me: 1.- Put {
"type": "module",
"dependencies": {
"@opendocsg/pdf2md": "latest",
"pdfjs-dist": "latest",
"dotenv": "latest"
}
} 3.- Ran |
You need to clone the characterfile-repo and install from there.
|
Hmm I followed those steps exactly @tombueng and get: (node:10889) ExperimentalWarning: CommonJS module /Users/davidlockie/.nvm/versions/node/v23.3.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /Users/davidlockie/.nvm/versions/node/v23.3.0/lib/node_modules/npm/node_modules/supports-color/index.js using require(). Error: Cannot find module 'pdfjs-dist/legacy/build/pdf'
Node.js v23.3.0 |
1 similar comment
Hmm I followed those steps exactly @tombueng and get: (node:10889) ExperimentalWarning: CommonJS module /Users/davidlockie/.nvm/versions/node/v23.3.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /Users/davidlockie/.nvm/versions/node/v23.3.0/lib/node_modules/npm/node_modules/supports-color/index.js using require(). Error: Cannot find module 'pdfjs-dist/legacy/build/pdf'
Node.js v23.3.0 |
guys, were you able to figure this out? nothing works for me |
For anyone interested. I found this solution... |
@PioBOR I tried your solution but it didn't work out for me |
Trying this at first I got an error "No matching version found for @opendocsg/[email protected]", but after running it without the version number install went thru and was able to run scripts/folder2knowledge.js. on node v23.5.0 |
so I was able to run both scripts finally but when knowledge2character adds the knowledge to the character the format is wrong and I am getting this error, over and over again. Tried modifying the script but nothing seems to work. Is it even needed to run this script and have this parsed into the character? Won't it just read directly from knowledge.json? |
The readme says you can just do
npx folder2knowledge
but the package does not exist on npmjs. Would be great if you could release it, or fix the readme:)The text was updated successfully, but these errors were encountered: