This is a template for creating a Weaviate devcontainer / Codespace, with Docker containers.
Option 1: Devcontainer Option 2: Github Codespaces
- Install Docker
- Install VSCode
- Install Devcontainer extension
- Open this repository in VSCode
- Open the command palette (Ctrl/Cmd+Shift+P), and select "Dev Containers: Rebuild and Reopen in Container"
- Wait for the container to build and start
- Click on the green "Code" button in the top right corner of the repository
- Select "Open with Codespaces"
- Click on "New codespace"
- Wait for the codespace to build and start
- Open a terminal (in the devcontainer or codespace)
- Run the following command to start Weaviate:
./run-weaviate.sh start
- Wait for Weaviate to start (it will show a message on the terminal when finished)
- Go to the Weaviate Cloud Console and create a new Weaviate instance (e.g. the Sandbox is free)
- Once the instance is created, click on it to open the instance details
- Connect to it using the Weaviate client using those details.
- (Optional) If you need to pass any API keys, create a
.env
file in the root of the repository with the required key and value pairs:COHERE_API_KEY=your_core_api_key