mistral-core-workflow-b

v2026.09.24

Build Mistral embeddings, retrieval, and function-calling loops with tenant isolation and application-owned execution. Use when adding RAG or tools. Trigger with "build Mistral RAG", "use Mistral embeddings", or "add Mistral function calling".

GitHub
安装命令
npx skhub add jeremylongshore/mistral-core-workflow-b
Markdown
SKILL.md

Mistral Retrieval and Tool Execution

Overview

Keep retrieval and tool use under application control. The model may propose queries or typed arguments; trusted code owns authorization, execution, side effects, and returned evidence.

Prerequisites

  • A tenant-scoped corpus with chunking, deletion, and re-embedding policy.
  • A current embedding model selected from account evidence.
  • A closed tool registry with schemas, authorization, deadlines, and idempotency.

Current Contract

Embeddings use POST /v1/embeddings; tool calls use the current chat schema. Vector shape, model access, tool schemas, and parallel behavior must come from the selected current contracts.

Authentication

Use Bearer auth only for Mistral. Every retrieved record and proposed action must separately pass application user and tenant authorization.

Instructions

  1. Define retrieval purpose, data class, tenant filter, deletion SLA, and evaluation set.
  2. Store embedding model, preprocessing version, and observed vector shape with each index.
  3. Retrieve with mandatory tenant filters and cap context before chat assembly.
  4. Validate each proposed tool name and argument against the closed registry and strict schema.
  5. Authorize and execute each side effect in trusted code with deadline and idempotency.
  6. Evaluate retrieval quality, access negatives, tool denial, usage, latency, and rollback.

Tool Discipline

Use Read, Glob, and Grep to inspect code, locks, configuration, tests, and evidence. Use Write and Edit only for approved repository changes. Invocation alone does not authorize network calls, paid usage, uploads, stateful resources, admin mutations, deployments, or deletion.

Approval Boundaries

Require approval before embedding customer data, creating an index, executing a mutation, widening corpus access, or allowing parallel actions.

Error Handling

  • Mixed-model indexes can corrupt similarity meaning.
  • Prompt instructions cannot replace tenant filters or authorization.
  • Malformed or repeated tool calls must be rejected or deduplicated, never broadened.

Output

Return corpus/tenant boundary, model/preprocessing versions, retrieval metrics, tool decisions, idempotency IDs, usage, retention, and rollback.

Examples

  • Retrieve only records authorized for one tenant and cite opaque IDs.
  • Let the model propose lookup_order; trusted code validates schema and entitlement.

Validation

Test cross-tenant denial, deletion propagation, model mismatch, empty retrieval, malformed/duplicate tools, cancellation, and mutation denial.

Resources

  • Current first-party evidence map — recheck dated sources before relying on mutable endpoints, models, limits, prices, preview status, or retention.
  • Record live account observations as environment-specific evidence, not universal Mistral guarantees.
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/mistral-core-workflow-b

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8