How it works

Credentials

This starterkit app is powered by OpenAI and Pinecone to generate completions and embeddings, so you can chat with your document(s).

Both require your API keys to work. Your API keys will not be saved on the server, they will be stored in browser cookies for 7 days.

Instructions to add credentials

  1. 1. Get your Open AI Keys from Open AI
  2. 2. Create a Pinecone account, then get your API key, Pinecone environment and index name. Pinecone Sign Up.

Navigation

  • Upload: The upload page allows you to upload one or more files include .txt, .md, .docx, .csv, and .pdf.
  • Chatbot: The chatbot page allows you to chat with your document. Please make sure you have uploaded a document first.

Limitations

Due to Vercel serverless functions limitations, the app is limited to only 3 file uploads at a time and a total of 4MB file size upload.

In addition, the app inserts embeddings into only one pinecone namespace by default called pdf-starter. If you want to add new files after uploading, you will first need to delete the old one or modify the hardcoded namespace.