Skip to content

Commit 50b4dec

Browse files
mpk-droidclaude
andauthored
fix: add missing milvus deps to llama-server targets across all agents (#98)
The shared run_llama_server.yaml configures inline::milvus as the vector_io provider, but 8 agent Makefiles only installed llama-stack and ollama — missing pymilvus, milvus-lite, and a setuptools upper bound (<82.0.0) needed to avoid the removed pkg_resources API. Also moves milvus_data directory creation from the ollama target into llama-server where it actually belongs. Closes: RHAIENG-5038 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 70a89fc commit 50b4dec

8 files changed

Lines changed: 16 additions & 20 deletions

File tree

agents/crewai/websearch_agent/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ ollama: ## Install Ollama, start it, and pull models
5858
llama-server: ## Install llama-stack and start Llama Stack server
5959
@source .venv/bin/activate && set -a && source .env && set +a && \
6060
echo "==> Installing llama-stack..." && \
61-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6263
echo "==> Killing any existing process on port 8321..." && \
6364
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6465
echo "==> Starting Llama Stack server on port 8321..." && \

agents/google/adk/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ ollama: ## Install Ollama, start it, and pull models
5252
done && \
5353
echo "==> Pulling $(MODEL)..." && \
5454
ollama pull $(MODEL) && \
55-
echo "==> Creating Milvus dir..." && \
56-
mkdir -p ../../../milvus_data && \
5755
echo "" && \
5856
echo "Done. Run 'make llama-server' to start the Llama Stack server."
5957

6058
llama-server: ## Install llama-stack and start Llama Stack server
6159
@source .venv/bin/activate && set -a && source .env && set +a && \
6260
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6463
echo "==> Killing any existing process on port 8321..." && \
6564
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6665
echo "==> Starting Llama Stack server on port 8321..." && \

agents/langflow/simple_tool_calling_agent/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ llama-server: ## Install llama-stack and start Llama Stack server
6060
fi && \
6161
source .venv/bin/activate && \
6262
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
63+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
64+
mkdir -p ../../../milvus_data && \
6465
echo "==> Killing any existing process on port 8321..." && \
6566
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6667
echo "==> Starting Llama Stack server on port 8321..." && \

agents/langgraph/agentic_rag/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ ollama: ## Install Ollama, start it, and pull models
5555
ollama pull $(MODEL) && \
5656
echo "==> Pulling embedding model ($(OLLAMA_EMBEDDING_MODEL))..." && \
5757
ollama pull $(OLLAMA_EMBEDDING_MODEL) && \
58-
echo "==> Creating Milvus dir..." && \
59-
mkdir -p ../../../milvus_data && \
6058
echo "" && \
6159
echo "Done. Run 'make llama-server' to start the Llama Stack server."
6260

6361
llama-server: ## Install llama-stack and start Llama Stack server
6462
@source .venv/bin/activate && set -a && source .env && set +a && \
6563
echo "==> Installing llama-stack..." && \
66-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
64+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
65+
mkdir -p ../../../milvus_data && \
6766
echo "==> Killing any existing process on port 8321..." && \
6867
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6968
echo "==> Starting Llama Stack server on port 8321..." && \

agents/langgraph/human_in_the_loop/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ ollama: ## Install Ollama, start it, and pull models
5252
done && \
5353
echo "==> Pulling $(MODEL)..." && \
5454
ollama pull $(MODEL) && \
55-
echo "==> Creating Milvus dir..." && \
56-
mkdir -p ../../../milvus_data && \
5755
echo "" && \
5856
echo "Done. Run 'make llama-server' to start the Llama Stack server."
5957

6058
llama-server: ## Install llama-stack and start Llama Stack server
6159
@source .venv/bin/activate && set -a && source .env && set +a && \
6260
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6463
echo "==> Killing any existing process on port 8321..." && \
6564
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6665
echo "==> Starting Llama Stack server on port 8321..." && \

agents/langgraph/react_agent/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ ollama: ## Install Ollama, start it, and pull models
5252
done && \
5353
echo "==> Pulling $(MODEL)..." && \
5454
ollama pull $(MODEL) && \
55-
echo "==> Creating Milvus dir..." && \
56-
mkdir -p ../../../milvus_data && \
5755
echo "" && \
5856
echo "Done. Run 'make llama-server' to start the Llama Stack server."
5957

6058
llama-server: ## Install llama-stack and start Llama Stack server
6159
@source .venv/bin/activate && set -a && source .env && set +a && \
6260
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6463
echo "==> Killing any existing process on port 8321..." && \
6564
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6665
echo "==> Starting Llama Stack server on port 8321..." && \

agents/langgraph/react_with_database_memory/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ ollama: ## Install Ollama, start it, and pull models
5252
done && \
5353
echo "==> Pulling $(MODEL)..." && \
5454
ollama pull $(MODEL) && \
55-
echo "==> Creating Milvus dir..." && \
56-
mkdir -p ../../../milvus_data && \
5755
echo "" && \
5856
echo "Done. Run 'make llama-server' to start the Llama Stack server."
5957

6058
llama-server: ## Install llama-stack and start Llama Stack server
6159
@source .venv/bin/activate && set -a && source .env && set +a && \
6260
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6463
echo "==> Killing any existing process on port 8321..." && \
6564
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6665
echo "==> Starting Llama Stack server on port 8321..." && \

agents/llamaindex/websearch_agent/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ ollama: ## Install Ollama, start it, and pull models
5252
done && \
5353
echo "==> Pulling $(MODEL)..." && \
5454
ollama pull $(MODEL) && \
55-
echo "==> Creating Milvus dir..." && \
56-
mkdir -p ../../../milvus_data && \
5755
echo "" && \
5856
echo "Done. Run 'make llama-server' to start the Llama Stack server."
5957

6058
llama-server: ## Install llama-stack and start Llama Stack server
6159
@source .venv/bin/activate && set -a && source .env && set +a && \
6260
echo "==> Installing llama-stack..." && \
63-
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama && \
61+
uv pip install "llama-stack==0.5.0" "llama-stack-api==0.5.0" ollama "pymilvus==2.6.9" "milvus-lite>=2.5.1" "setuptools>=80.9.0,<82.0.0" && \
62+
mkdir -p ../../../milvus_data && \
6463
echo "==> Killing any existing process on port 8321..." && \
6564
lsof -ti:8321 | xargs kill -9 2>/dev/null; true && \
6665
echo "==> Starting Llama Stack server on port 8321..." && \

0 commit comments

Comments
 (0)