Git Product home page Git Product logo

Comments (3)

mayooear avatar mayooear commented on May 15, 2024 1

Hey, a few issues here:

  1. EISDIR error means that you are attempting to read for a directory instead of a file. Please cross check the file path is correct in ingest-data.ts
  2. Langchain requires node-fetch module, it seems it's missing on your end so pnpm add node-fetch then import fetch into the pinecone.ts file

from gpt4-pdf-chatbot-langchain.

machsci avatar machsci commented on May 15, 2024

After making the above changes, I get a new error:

> [email protected] ingest /content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain
> tsx -r dotenv/config scripts/ingest-data.ts

/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2288
      throw reject;
      ^

Error: The service is no longer running: spawn /content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/@[email protected]/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
    at /content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:816:29
    at sendRequest (/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:693:14)
    at start (/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:814:9)
    at Object.transform2 [as transform] (/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:879:5)
    at /content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2180:77
    at new Promise (<anonymous>)
    at Object.transform (/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2180:36)
    at /content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2334:67
    at MessagePort.<anonymous> (/content/gdrive/MyDrive/[Path]/gpt4-pdf-chatbot-langchain/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2350:9)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:758:20)

Node.js v19.8.1
 ELIFECYCLE  Command failed with exit code 1.

from gpt4-pdf-chatbot-langchain.

mayooear avatar mayooear commented on May 15, 2024

I think it's because you're using google drive. So the file permissions aren't set properly. Try copying the project to your local filesystem and testing from there.

from gpt4-pdf-chatbot-langchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.