A Next.js application for uploading and managing documents using Weaviate Cloud.
- Clone the repository
- Install dependencies:
npm install- Create a
.env.localfile in the root directory with the following variables:
WEAVIATE_INSTANCE_URL=your-instance-url.weaviate.cloud
WEAVIATE_API_KEY=your-api-key
OPENAI_API_KEY=your-openai-api-key # Optional: Only if using OpenAI modules-
Replace the placeholder values in
.env.localwith your actual credentials:WEAVIATE_INSTANCE_URL: Your Weaviate Cloud instance URLWEAVIATE_API_KEY: Your Weaviate Cloud API keyOPENAI_API_KEY: (Optional) Your OpenAI API key if using OpenAI modules
-
Run the development server:
npm run devWEAVIATE_INSTANCE_URL: The URL of your Weaviate Cloud instanceWEAVIATE_API_KEY: API key for authenticating with Weaviate CloudOPENAI_API_KEY: (Optional) API key for OpenAI integration
Make sure to never commit your .env.local file to version control.