Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.27 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.27 KB

File Q&A

Set Up

If you don't have Node.js and npm already, install them from https://nodejs.org/en/download/.

In your terminal, navigate to the nextjs directory of this example app, and then install dependencies:

npm install

Copy the .env.local.example file into a .env.local file and fill out the OpenAI API key field.

Development

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the app.

Deployment

You can deploy the app on Vercel, the platform from the creators of Next.js. Check out the Next.js deployment documentation for more details.

Limitations

Uploaded files and generated embeddings don't persist on browser refresh. If you want to store more embeddings, we recommend using a vector database (e.g. Pinecone, Weaviate, Milvus, Qdrant, Redis, FAISS, etc.). The nextjs-with-flask-server version of this demo uses a Pinecone vector database.

The app may sometimes generate answers that are not in the files, or hallucinate about the existence of files that are not uploaded.