Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,60 @@ docker run \
zachrebuild/revect.io:latest
```

### 🧠 Running Multiple Containers

You can run multiple revect containers simultaneously, each with its own dedicated purpose. This allows you to organize your knowledge into separate, focused databases. Each container is very simple and efficient, using only 50MB of RAM to stay running in Docker.

**Example use cases:**
- One container for general knowledge (articles, notes, personal memories)
- One container for coding-related knowledge (tutorials, documentation, code snippets)

To run multiple containers, use different ports and volume mounts:

```
# Container 1: General Knowledge
docker run \
-p 8000:3000 \
-v ~/Documents/revect-general:/app/data \
-e AI_BASE_URL="http://host.docker.internal:11434/v1" \
-e AI_API_KEY="key" \
-e AI_EMBEDDING_MODEL="mxbai-embed-large" \
-e AI_EMBEDDING_SIZE="1024" \
-e API_SECRET="test" \
--pull always \
--add-host=host.docker.internal:host-gateway \
zachrebuild/revect.io:latest

# Container 2: Coding Knowledge
docker run \
-p 8001:3000 \
-v ~/Documents/revect-coding:/app/data \
-e AI_BASE_URL="http://host.docker.internal:11434/v1" \
-e AI_API_KEY="key" \
-e AI_EMBEDDING_MODEL="mxbai-embed-large" \
-e AI_EMBEDDING_SIZE="1024" \
-e API_SECRET="test" \
--pull always \
--add-host=host.docker.internal:host-gateway \
zachrebuild/revect.io:latest
```

You can then connect to your specific knowledge base through MCP by using the appropriate port:

```
# Connect to general knowledge base
http://localhost:8000/mcp

# Connect to coding knowledge base
http://localhost:8001/mcp
```

This approach lets you ask your AI to recall from specific knowledge domains. For example:
- "Connect to my general knowledge base and recall that article about climate change"
- "Connect to my coding knowledge base and recall how I implemented that React pagination component last month"

<p align="center">🎬 <i>Video example: Adding revect to your command line interface</i> - Coming soon! 🎬</p>

### 🔌 MCP Setup

To use revect with the MCP (Model Context Protocol) for AI integrations:
Expand Down