Skip to content

Commit aca2410

Browse files
Merge pull request #3484 from annietllnd/main
Technical review of Ollama concierge agent
2 parents eaeb7f9 + c8e166b commit aca2410

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

content/learning-paths/cross-platform/ai-agent-cpu-orchestration/2-setup.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ In this section, you'll prepare everything the agent needs before running it: a
1212

1313
These steps are identical on an Apple silicon MacBook, an Arm Linux machine, and an NVIDIA DGX Spark.
1414

15-
## Get a Serper API key
16-
17-
The agent searches the web through [Serper](https://serper.dev/), a Google Search API. The free tier is enough to complete this Learning Path.
18-
19-
1. Go to [serper.dev](https://serper.dev/) and create a free account.
20-
2. Open your dashboard and copy your API key.
21-
22-
You'll set this key as an environment variable later in this section, so the agent can read it without the key being written into the code.
23-
2415
## Create a project directory and virtual environment
2516

2617
A virtual environment keeps the agent's dependencies isolated from your system Python, so you always run against the right package versions.
@@ -53,7 +44,12 @@ pip install requests beautifulsoup4
5344

5445
## Set your Serper API key
5546

56-
Export your API key as an environment variable in the same terminal session:
47+
The agent searches the web through [Serper](https://serper.dev/), a Google Search API. The free tier is enough to complete this Learning Path.
48+
49+
1. Go to [serper.dev](https://serper.dev/) and create a free account.
50+
2. Once logged in, you will see the dashboard. On the left, click **API Keys**.
51+
3. Copy the Default key.
52+
4. Export your API key as an environment variable in the same terminal session as your virtual environment:
5753

5854
```bash
5955
export SERPER_API_KEY="your-serper-api-key"

content/learning-paths/cross-platform/ai-agent-cpu-orchestration/3-ollama.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,33 @@ Running locally has three benefits that matter for an agent:
2020

2121
## Install and start Ollama
2222

23-
Install [Ollama](https://ollama.com/) and start its server using one of the following options. The server exposes a local API at `http://localhost:11434` that the agent connects to.
23+
Install [Ollama](https://ollama.com/) and start its server. The server exposes a local API at `http://localhost:11434` that the agent connects to.
24+
25+
1. Install Ollama using one of the following options:
2426

2527
{{< tabpane code=true >}}
26-
{{< tab header="Homebrew (Recommended)" language="bash">}}
27-
# Install Ollama
28+
{{< tab header="Homebrew" language="bash">}}
2829
brew install ollama
29-
30-
# Start the server as a background service (no terminal to keep open)
31-
brew services start ollama
3230
{{< /tab >}}
3331
{{< tab header="Install script" language="bash">}}
34-
# Install Ollama
3532
curl -fsSL https://ollama.com/install.sh | sh
33+
{{< /tab >}}
34+
{{< /tabpane >}}
35+
36+
2. Start the Ollama server using the same method you used to install it:
3637

37-
# Start the server (leave this running, and open a second terminal)
38+
{{< tabpane code=true >}}
39+
{{< tab header="Homebrew" language="bash">}}
40+
brew services start ollama
41+
{{< /tab >}}
42+
{{< tab header="Install script" language="bash">}}
3843
ollama serve
3944
{{< /tab >}}
4045
{{< /tabpane >}}
4146

42-
With [Homebrew](https://brew.sh/), `brew services` runs Ollama in the background, so you can use the same terminal throughout. With the install script, `ollama serve` runs in the foreground, so keep that terminal open and use a second terminal for the remaining commands.
47+
With [Homebrew](https://brew.sh/), `brew services` runs Ollama in the background, so you can use the same terminal throughout. To stop it later, run `brew services stop ollama`.
48+
49+
With the install script, `ollama serve` runs in the foreground. Keep that terminal open and use a second terminal for the remaining commands. To stop it later, press **Ctrl+C** in the terminal running `ollama serve`.
4350

4451
## Pull the Gemma model
4552

0 commit comments

Comments
 (0)