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

500 error in a Next.js API route #6

Open
Tax-Technology opened this issue Jun 27, 2024 · 3 comments
Open

500 error in a Next.js API route #6

Tax-Technology opened this issue Jun 27, 2024 · 3 comments

Comments

@Tax-Technology
Copy link

Tax-Technology commented Jun 27, 2024

Without editing the code I receive a 500 error when running the legal-semantic-search sample app. Is this a server side bug?

Screenshot 2024-06-27 at 15 36 35

Also, if I want to use the app for my different legal documents, do I just remove the existing sample PDFs upload my own PDFs? or is there manual changes to be made e.g. to the db.json file etc? Is there a set-up video tutorial available?

@mohitdudhat22
Copy link

Maybe you forgot to set up the environment, and replacing the existing sample PDF directly may not work, because the document states that PDFs are parsed by langchain.

@zackproser
Copy link
Collaborator

@Tax-Technology Thanks for reporting.

I haven't yet been able to reproduce on a fresh installation using the npx command:

npx create-pinecone-app@latest --template legal-semantic-search

Could you please ensure that the following environment variables are defined and see if that makes a difference?

  • PINECONE_API_KEY
  • VOYAGE_API_KEY
  • PINECONE_INDEX

@zackproser
Copy link
Collaborator

You definitely can swap in your own arbitrary PDFs. The bootstrapping service will read them, chunk them and upsert them into your index, as you can see here.

To swap in your own custom PDFs, change:

  1. The PDF files in the /docs directory
  2. The entries in db.json

Hope this helps!

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