-
Notifications
You must be signed in to change notification settings - Fork 3k
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
error on - npm injest #243
Comments
save it as a |
Support for .txt files is coming in PR #246 |
Hi, @wargsm! I'm Dosu, and I'm here to help the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you reported an issue regarding a syntax error during the execution of the Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and cooperation. Let us know if you have any further questions or concerns. |
Pinecone/OpenAI credentials are valid, confirmed from other projects. My /docs/sample.txt file just contains "my name is Firstname Surname". Clean project... Error below on npm injest. Any thoughts? Please and thanks.
`macpro@macpro gpt4-pdf-chatbot-langchain % npm run ingest
/Users/macpro/projects/gpt4-pdf-chatbot-langchain/node_modules/tsx/dist/cli.js:2
import ys from"tty";import{v as ws}from"./package-69a34105.js";import{r as Dt}from"./pkgroll_create-require-b9328ee2.js";import{pathToFileURL as Rs,fileURLToPath as bs}from"url";import vs from"child_process";import K from"path";import ie from"fs";import Fu,{constants as Bs}from"os";import Ss from"events";import me from"util";import $s from"stream";import"module";const Ts="known-flag",xs="unknown-flag",Os="argument",{stringify:_e}=JSON,Ns=/\B([A-Z])/g,Hs=t=>t.replace(Ns,"-$1").toLowerCase(),{hasOwnProperty:Ps}=Object.prototype,Ae=(t,e)=>Ps.call(t,e),Ls=t=>Array.isArray(t),gu=t=>typeof t=="function"?[t,!1]:Ls(t)?[t[0],!0]:gu(t.type),Is=(t,e)=>t===Boolean?e!=="false":e,ks=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),Ms=/[\s.:=]/,Ws=t=>{const e=
Flag name ${_e(t)}
;if(t.length===0)throw new Error(${e} cannot be empty
);if(t.length===1)throw new Error(${e} must be longer than a character
);const u=t.match(Ms);ifSyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)`
The text was updated successfully, but these errors were encountered: