跳到正文
TakoAPI
返回技能列表

ollama-memory-embeddings

由 vidarbrekke 提供

Coding Agents & IDEs
1.2k下载量由 clawskills.sh 提供
3星标
2浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Configure OpenClaw memory search to use Ollama as the embeddings server (OpenAI-compatible /v1/embeddings) instead.

描述

该技能的功能

Configures OpenClaw memory search to use Ollama as the embeddings server via its OpenAI-compatible /v1/embeddings endpoint, replacing the built-in node-llama-cpp local GGUF loader. Supports multiple embedding models, optional import of existing local GGUFs into Ollama, config drift enforcement, and a launchd watchdog for auto-healing.

Offloading embedding generation to Ollama avoids in-process GGUF loading overhead while keeping all data local, and the drift watchdog ensures config stays consistent across gateway restarts.

何时使用

  • Switching OpenClaw memory search from local GGUF loading to Ollama embeddings
  • Selecting a different embedding model without manually editing config
  • Importing an existing local embedding GGUF into Ollama for reuse
  • Running scheduled config drift checks to keep embedding settings consistent
  • Rebuilding the memory index after changing embedding providers

示例工作流

输入

User runs install.sh to switch OpenClaw memory search from built-in GGUF to Ollama

智能体
  1. 1

    Verifies Ollama is installed and reachable at 127.0.0.1:11434

  2. 2

    Prompts user to select an embedding model such as nomic-embed-text or embeddinggemma

  3. 3

    Updates agents.defaults.memorySearch in OpenClaw config with provider, model, baseUrl, and apiKey fields

  4. 4

    Optionally triggers a memory reindex if the embedding fingerprint changed

  5. 5

    Calls the Ollama embeddings endpoint and validates the response to confirm setup

输出

OpenClaw memory search uses Ollama for embedding vector generation, with config backed up and verified

前置要求

  • Ollama installed and running locally

安装

clawhub install vidarbrekke/ollama-memory-embeddings

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接