Skip to content
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

Closed
wargsm opened this issue May 2, 2023 · 3 comments
Closed

error on - npm injest #243

wargsm opened this issue May 2, 2023 · 3 comments

Comments

@wargsm
Copy link

wargsm commented May 2, 2023

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

gpt4-langchain-pdf-chatbot@0.1.0 ingest
tsx -r dotenv/config scripts/ingest-data.ts

/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);if

SyntaxError: 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)`

@fabianhug
Copy link

save it as a *.PDF and try again @wargsm

@spacepirate0001
Copy link

Support for .txt files is coming in PR #246

@dosubot
Copy link

dosubot bot commented Sep 22, 2023

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 npm run ingest command. In the comments, fabianhug suggested saving the file as a *.PDF and trying again, while spacepirate0001 mentioned that support for .txt files is coming in PR #246.

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.

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 22, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants