From 4ab97f890b117d4a0ea548018143cdaa292b2f71 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 May 2025 18:35:14 +0000 Subject: [PATCH 1/5] Initial plan for issue From 4b1cbfb1a1f07f4d12666feec7041da7bbe1838a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 May 2025 18:38:53 +0000 Subject: [PATCH 2/5] Add README note about running multiple containers Co-authored-by: zackify <449136+zackify@users.noreply.github.com> --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index dfe5802..bc90626 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,58 @@ 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. + +**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" + ### 🔌 MCP Setup To use revect with the MCP (Model Context Protocol) for AI integrations: From 1d947b7c6113cd194e52de06b2237bb35b632bb5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 May 2025 19:22:52 +0000 Subject: [PATCH 3/5] Add note about container memory efficiency Co-authored-by: zackify <449136+zackify@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc90626..ea4a9f6 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ docker run \ ### 🧠 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. +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) From 98cb62a51779a683f142f67e6a98bdf7606446f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 May 2025 19:25:38 +0000 Subject: [PATCH 4/5] Add video placeholder for command line interface example Co-authored-by: zackify <449136+zackify@users.noreply.github.com> --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ea4a9f6..8a7e83b 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,8 @@ This approach lets you ask your AI to recall from specific knowledge domains. Fo - "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" +

🎬 Video example: Adding revect to your command line interface - Coming soon! 🎬

+ ### 🔌 MCP Setup To use revect with the MCP (Model Context Protocol) for AI integrations: From 8b9655a155255ab184ad8d2515656eb17901a144 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 May 2025 20:37:27 +0000 Subject: [PATCH 5/5] Update README table of contents to include Running Multiple Containers section Co-authored-by: zackify <449136+zackify@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ee5b7ed..2e6caa2 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ With MCP support, you can use revect as a private way to own your data and recal - [🔮 Upcoming Features](#-upcoming-features) - [🚀 Getting Started](#-getting-started) - [🐳 Docker + Local AI Setup](#-running-fully-local-with-docker--ollama--lm-studio) + - [🧠 Running Multiple Containers](#-running-multiple-containers) - [🔌 MCP Configuration](#-mcp-setup) - [💬 Using MCP](#-mcp-usage) - [🔄 Switching Embedding Models](#-switching-embedding-models)