pashpashpash / vault-ai

OP Vault ChatGPT: Give ChatGPT long-term memory using the OP Stack (OpenAI + Pinecone Vector Database). Upload your own custom knowledge base files (PDF, txt, epub, etc) using a simple React frontend.
https://vault.pash.city
MIT License
3.25k stars 306 forks source link

Can't get past injestion #94

Open uteitler opened 3 months ago

uteitler commented 3 months ago

Have checked the other discussions:

OpenAPI balance is OK .. it is being called requests are logged PineCone configuration appears OK

image

And env file matches

OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXZ1NSYgnmHuCOufxWBlYY

Update these with your pinecone details from your dashboard.

PINECONE_INDEX_NAME is in the indexes tab under "index name" in blue

PINECONE_ENVIRONMENT is in indexes tab under "Environment". Example: "us-east1-gcp"

PINECONE_API_KEY="5ccca27d-8340-43ac-bd9d-XXXXXXXXXXXXX" PINECONE_ENVIRONMENT="us-east-1" PINECONE_INDEX_NAME="areports"

However get this error

}, Document { pageContent: 'f', metadata: { source: 'C:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\docs\Annual Reports 1965-1966.pdf', pdf: [Object], loc: [Object] } } ] creating vector store... error TypeError: Cannot read properties of undefined (reading 'text') at (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:44:57) at step (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:33:23) at Object.next (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:14:53) at (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:8:71) at new Promise () at __awaiter (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:4:12) at extractMessage (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\utils.js:40:48) at (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\handling.js:66:70) at step (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\handling.js:33:23) at Object.next (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\node_modules\@pinecone-database\pinecone\dist\errors\handling.js:14:53) c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\scripts\ingest-data.ts:46 throw new Error('Failed to ingest your data'); ^

Error: Failed to ingest your data at run (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\scripts\ingest-data.ts:46:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at (c:\Users\User\Documents\GitHub\gpt4-pdf-chatbot-langchain\scripts\ingest-data.ts:51:3)

Node.js v19.2.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.