# weaviate - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 weaviate 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 它能做什么

- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0001` supported 0.86

## 怎么开始

- `pip install -U weaviate-client` 证据：`README.md` Claim：`clm_0003` supported 0.86
- `npx skills add weaviate/agent-skills` 证据：`README.md` Claim：`clm_0004` supported 0.86

## 继续前判断卡

- **当前建议**：仅建议沙盒试装
- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。

### 30 秒判断

- **现在怎么做**：仅建议沙盒试装
- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装
- **先别相信**：真实输出质量不能在安装前相信。
- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件

### 现在可以相信

- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0003` supported 0.86

### 现在还不能相信

- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`CLAUDE.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`CLAUDE.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：用安装前交互式试用判断工作方式是否匹配，不需要授权或改环境。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0005` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0006` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86

### 上下文规模

- 文件总数：4643
- 重要文件覆盖：40/4643
- 证据索引条目：80
- 角色 / Skill 条目：15

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 weaviate 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 weaviate 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 weaviate 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

- 共索引 15 个角色 / Skill / 项目文档条目。

- **Weaviate**（project_doc）：! GitHub Repo stars https://img.shields.io/github/stars/weaviate/weaviate?style=social https://github.com/weaviate/weaviate ! Go Reference https://pkg.go.dev/badge/github.com/weaviate/weaviate.svg https://pkg.go.dev/github.com/weaviate/weaviate ! Build Status https://github.com/weaviate/weaviate/actions/workflows/.github/workflows/pull requests.yaml/badge.svg?branch=main https://github.com/weaviate/weaviate/actions/… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **Docker-compose runtime files**（project_doc）：This folder used to contain example docker-compose.yml files for various languages. Instead you can now configure your own docker-compose file - on the fly - using Weaviate's documentation. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docker-compose/Readme.md`
- **Testing**（project_doc）：we use shell to run our unit/ acceptance / integration tests 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`test/README.md`
- **Requirements**（project_doc）：This folder contains scripts to help execute the benchmark remotely on a GCP VM. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`test/benchmark/remote/README.md`
- **Usage**（project_doc）：Usage gen-code-from-swagger.sh Steps 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`tools/dev/README.md`
- **Common Indexing Mistakes - Demo UI**（project_doc）：A visual demo of three typical Weaviate indexing misconfigurations against a 1,000,000-object product catalog. Each card runs a pre-canned query and shows wall-clock latency, total match count where applicable , and the top result rows so the failure mode is visible at a glance. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`tools/dev/bench/demo_indexing_mistakes_ui/README.md`
- **Generate release notes**（project_doc）：This project generates github release notes. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`tools/dev/generate_release_notes/README.md`
- **Weaviate Telemetry Dashboard**（project_doc）：A local web dashboard for receiving and visualizing telemetry data from Weaviate instances. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`tools/telemetry-dashboard/README.md`
- **CLAUDE.md**（project_doc）：This file provides guidance to Claude Code claude.ai/code when working with code in this repository. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CLAUDE.md`
- **Thanks for looking into contributing to Weaviate!**（project_doc）：Thanks for looking into contributing to Weaviate! We really appreciate that you are willing to spend some time and effort to make Weaviate better for everyone! 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CONTRIBUTING.md`
- **Weaviate Metrics**（project_doc）：This document is the single source of truth for Prometheus metrics exposed by Weaviate. It explains what we measure and why, how to use the metrics, and how we keep the set lean and cost‑effective. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/metrics.md`
- **Runtime property reindex**（project_doc）：Change inverted-index configuration on a live class — without restarting the cluster, without losing writes that arrive during the rebuild, and without dropping query availability on the affected property. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/runtime-reindex.md`
- **Usage Limits / Free-Tier Guardrails**（project_doc）：Usage Limits / Free-Tier Guardrails 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/usage_limits.md`
- **Deferred reindex simplifications**（project_doc）：Three simplifications that the multi-agent scout pass identified as worthwhile but that I deliberately did NOT apply autonomously on branch runtime-reindex-wip . Each touches either a crash-safety path or the hottest write hook, and warrants a human reviewer in the loop. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/proposals/deferred_reindex_simplifications.md`
- **Authorization Calls**（project_doc）：Authorization Calls This document lists all authorization calls in the codebase. Usage To regenerate this documentation, run the following commands from the repository root: Statistics - Total files found: 23162 - Files processed: 1937 - Total Authorize calls found: 79 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`usecases/auth/authorization/docs/auth_calls.md`

## 证据索引

- 共索引 80 条证据。

- **Weaviate**（documentation）：! GitHub Repo stars https://img.shields.io/github/stars/weaviate/weaviate?style=social https://github.com/weaviate/weaviate ! Go Reference https://pkg.go.dev/badge/github.com/weaviate/weaviate.svg https://pkg.go.dev/github.com/weaviate/weaviate ! Build Status https://github.com/weaviate/weaviate/actions/workflows/.github/workflows/pull requests.yaml/badge.svg?branch=main https://github.com/weaviate/weaviate/actions/workflows/.github/workflows/pull requests.yaml ! Go Report Card https://goreportcard.com/badge/github.com/weaviate/weaviate https://goreportcard.com/report/github.com/weaviate/weaviate ! Coverage Status https://codecov.io/gh/weaviate/weaviate/branch/main/graph/badge.svg https://c… 证据：`README.md`
- **Docker-compose runtime files**（documentation）：This folder used to contain example docker-compose.yml files for various languages. Instead you can now configure your own docker-compose file - on the fly - using Weaviate's documentation. 证据：`docker-compose/Readme.md`
- **Testing**（documentation）：we use shell to run our unit/ acceptance / integration tests 证据：`test/README.md`
- **Requirements**（documentation）：This folder contains scripts to help execute the benchmark remotely on a GCP VM. 证据：`test/benchmark/remote/README.md`
- **Usage**（documentation）：Usage gen-code-from-swagger.sh Steps 证据：`tools/dev/README.md`
- **Common Indexing Mistakes - Demo UI**（documentation）：A visual demo of three typical Weaviate indexing misconfigurations against a 1,000,000-object product catalog. Each card runs a pre-canned query and shows wall-clock latency, total match count where applicable , and the top result rows so the failure mode is visible at a glance. 证据：`tools/dev/bench/demo_indexing_mistakes_ui/README.md`
- **Generate release notes**（documentation）：This project generates github release notes. 证据：`tools/dev/generate_release_notes/README.md`
- **Weaviate Telemetry Dashboard**（documentation）：A local web dashboard for receiving and visualizing telemetry data from Weaviate instances. 证据：`tools/telemetry-dashboard/README.md`
- **CLAUDE.md**（documentation）：This file provides guidance to Claude Code claude.ai/code when working with code in this repository. 证据：`CLAUDE.md`
- **Thanks for looking into contributing to Weaviate!**（documentation）：Thanks for looking into contributing to Weaviate! We really appreciate that you are willing to spend some time and effort to make Weaviate better for everyone! 证据：`CONTRIBUTING.md`
- **License**（source_file）：Copyright c 2020-2025, Weaviate B.V. All rights reserved. 证据：`LICENSE`
- **Weaviate Metrics**（documentation）：This document is the single source of truth for Prometheus metrics exposed by Weaviate. It explains what we measure and why, how to use the metrics, and how we keep the set lean and cost‑effective. 证据：`docs/metrics.md`
- **Runtime property reindex**（documentation）：Change inverted-index configuration on a live class — without restarting the cluster, without losing writes that arrive during the rebuild, and without dropping query availability on the affected property. 证据：`docs/runtime-reindex.md`
- **Usage Limits / Free-Tier Guardrails**（documentation）：Usage Limits / Free-Tier Guardrails 证据：`docs/usage_limits.md`
- **Deferred reindex simplifications**（documentation）：Three simplifications that the multi-agent scout pass identified as worthwhile but that I deliberately did NOT apply autonomously on branch runtime-reindex-wip . Each touches either a crash-safety path or the hottest write hook, and warrants a human reviewer in the loop. 证据：`docs/proposals/deferred_reindex_simplifications.md`
- **Authorization Calls**（documentation）：Authorization Calls This document lists all authorization calls in the codebase. Usage To regenerate this documentation, run the following commands from the repository root: Statistics - Total files found: 23162 - Files processed: 1937 - Total Authorize calls found: 79 证据：`usecases/auth/authorization/docs/auth_calls.md`
- **Weaviate Client**（source_file）：package client ⋮---- import "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/weaviate/weaviate/client/authz" "github.com/weaviate/weaviate/client/backups" "github.com/weaviate/weaviate/client/batch" "github.com/weaviate/weaviate/client/classifications" "github.com/weaviate/weaviate/client/cluster" "github.com/weaviate/weaviate/client/distributed tasks" "github.com/weaviate/weaviate/client/export" "github.com/weaviate/weaviate/client/graphql" "github.com/weaviate/weaviate/client/mcp" "github.com/weaviate/weaviate/client/meta" "github.com/weaviate/weaviate/client/namespaces" "github.com/weaviate/weaviate/client/nod… 证据：`client/weaviate_client.go`
- **Raft**（source_file）：package cluster ⋮---- import "context" "sync" "time" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/cluster/distributedtask" cmd "github.com/weaviate/weaviate/cluster/proto/api" "github.com/weaviate/weaviate/cluster/replication" "github.com/weaviate/weaviate/cluster/schema" "github.com/weaviate/weaviate/usecases/cluster" ⋮---- "context" "sync" "time" ⋮---- "github.com/sirupsen/logrus" ⋮---- "github.com/weaviate/weaviate/cluster/distributedtask" cmd "github.com/weaviate/weaviate/cluster/proto/api" "github.com/weaviate/weaviate/cluster/replication" "github.com/weaviate/weaviate/cluster/schema" "github.com/weaviate/weaviate/usecases/cluster" ⋮---- type Raft struct { nodeSelector cl… 证据：`cluster/raft.go`
- **Service**（source_file）：package cluster ⋮---- import "context" "errors" "fmt" "net" "time" "github.com/cenkalti/backoff/v4" "github.com/hashicorp/raft" "github.com/prometheus/client golang/prometheus" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/cluster/bootstrap" "github.com/weaviate/weaviate/cluster/fsm" "github.com/weaviate/weaviate/cluster/replication" "github.com/weaviate/weaviate/cluster/replication/metrics" "github.com/weaviate/weaviate/cluster/resolver" "github.com/weaviate/weaviate/cluster/rpc" "github.com/weaviate/weaviate/cluster/schema" enterrors "github.com/weaviate/weaviate/entities/errors" "github.com/weaviate/weaviate/usecases/auth/authorization" "github.com/weaviate/weaviate/usecases… 证据：`cluster/service.go`
- **Store**（source_file）：package cluster ⋮---- import "context" "errors" "fmt" "net" "os" "path/filepath" "sync/atomic" "time" "github.com/hashicorp/raft" raftbolt "github.com/hashicorp/raft-boltdb/v2" "github.com/jonboulle/clockwork" "github.com/prometheus/client golang/prometheus" "github.com/prometheus/client golang/prometheus/promauto" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/cluster/distributedtask" "github.com/weaviate/weaviate/cluster/dynusers" "github.com/weaviate/weaviate/cluster/fsm" "github.com/weaviate/weaviate/cluster/log" "github.com/weaviate/weaviate/cluster/namespaces" rbacRaft "github.com/weaviate/weaviate/cluster/rbac" "github.com/weaviate/weaviate/cluster/replication" replicatio… 证据：`cluster/store.go`
- **Main**（source_file）：package deprecations ⋮---- import "github.com/sirupsen/logrus" ⋮---- //go:generate go run gen.go //go:generate goimports -w data.go ⋮---- func Log logger logrus.FieldLogger, id string 证据：`deprecations/main.go`
- **Client**（source_file）：package clients ⋮---- import "bytes" "context" "encoding/json" "errors" "fmt" "io" "net/http" "time" "github.com/cenkalti/backoff/v4" ⋮---- "bytes" "context" "encoding/json" "errors" "fmt" "io" "net/http" "time" ⋮---- "github.com/cenkalti/backoff/v4" ⋮---- type retryClient struct { client http.Client retryer } ⋮---- type HTTPError struct { Code int Body byte } ⋮---- func e HTTPError Error string ⋮---- func AsHTTPError err error HTTPError, bool ⋮---- var he HTTPError ⋮---- func c retryClient doWithCustomMarshaller timeout time.Duration, req http.Request, data byte, decode func byte error, success func code int bool, numRetries int, err error ⋮---- func c retryClient do timeout time.Duration,… 证据：`adapters/clients/client.go`
- **Remote Index**（source_file）：package clients ⋮---- import "bytes" "context" "encoding/base64" "encoding/json" "fmt" "io" "net/http" "net/url" "strconv" "time" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/models" "github.com/go-openapi/strfmt" "github.com/pkg/errors" clusterapi "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/shared" "github.com/weaviate/weaviate/adapters/repos/db/helpers" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/aggregation" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/search" "github.com/weaviate/weaviate/entities/searchparams" "github.com/weaviate/weaviate/en… 证据：`adapters/clients/remote_index.go`
- **Replication**（source_file）：package clients ⋮---- import "bytes" "context" "encoding/base64" "encoding/binary" "encoding/json" stderrors "errors" "fmt" "io" "math" "math/rand" "net/http" "net/url" "sync" "time" "github.com/google/uuid" "github.com/go-openapi/strfmt" "github.com/klauspost/compress/zstd" "github.com/pkg/errors" clusterapi "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/shared" "github.com/weaviate/weaviate/cluster/router/types" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/search" "github.com/weaviate/weaviate/entities/storobj" "github.com/weaviate/weaviate/usecases/objects" "github.com/weaviate/w… 证据：`adapters/clients/replication.go`
- **Filters**（source_file）：package descriptions ⋮---- const GetWhere = "Filter options for a local Get query, used to convert the result to the specified filters" GetWhereInpObj = "An object containing filter options for a local Get query, used to convert the result to the specified filters" ⋮---- const LocalMetaWhere = "Filter options for a local Meta query, used to convert the result to the specified filters" LocalMetaWhereInpObj = "An object containing filter options for a local Meta query, used to convert the result to the specified filters" ⋮---- const AggregateWhere = "Filter options for a local Aggregate query, used to convert the result to the specified filters" AggregateWhereInpObj = "An object containing fi… 证据：`adapters/handlers/graphql/descriptions/filters.go`
- **Hybrid Search**（source_file）：package aggregate ⋮---- import "fmt" "os" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- "fmt" "os" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/entities/models" ⋮---- "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- func hybridArgument classObject graphql.Object, class models.Class, modulesProvider ModulesProvider, graphql.ArgumentConfig ⋮---- func hybridOperands classObj… 证据：`adapters/handlers/graphql/local/aggregate/hybrid_search.go`
- **Properties**（source_file）：package aggregate ⋮---- import "fmt" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/entities/aggregation" "github.com/weaviate/weaviate/entities/models" ⋮---- "fmt" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/entities/aggregation" "github.com/weaviate/weaviate/entities/models" ⋮---- func numericPropertyFields class models.Class, property models.Property, prefix string graphql.Object ⋮---- func datePropertyFields class models.Class, property models.Property, prefix string, graphql.Object ⋮---- func referen… 证据：`adapters/handlers/graphql/local/aggregate/properties.go`
- **Sparse Search**（source_file）：package aggregate ⋮---- import "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" ⋮---- func bm25Fields prefix string graphql.InputObjectConfigFieldMap 证据：`adapters/handlers/graphql/local/aggregate/sparse_search.go`
- **Filters**（source_file）：package common filters ⋮---- import "fmt" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- "fmt" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- func BuildNew path string graphql.InputObjectConfigFieldMap ⋮---- func newGeoRangeInputObject path string graphql.InputObject ⋮---- func newGeoRangeGeoCoordinatesInputObject path string graphql.InputObject ⋮---- func newGeoRangeDistanceInputObject path string graphql.InputObject 证据：`adapters/handlers/graphql/local/common_filters/filters.go`
- **Group By**（source_file）：package common filters ⋮---- import "github.com/weaviate/weaviate/entities/searchparams" ⋮---- func ExtractGroupBy source map string interface ⋮---- var args searchparams.GroupBy 证据：`adapters/handlers/graphql/local/common_filters/group_by.go`
- **Hybrid**（source_file）：package common filters ⋮---- import "fmt" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/searchparams" ⋮---- "fmt" ⋮---- "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/models" ⋮---- "github.com/weaviate/weaviate/entities/searchparams" ⋮---- const DefaultAlpha = float64 0.75 const HybridRankedFusion = iota HybridRelativeScoreFusion const HybridFusionDefault = HybridRelativeScoreFusion ⋮---- func ExtractHybridSearch source map string interface ⋮---- var subsearches interface{} ⋮---- var args searchparams.HybridSearch ⋮---- var weightedSearchResults searchparams.WeightedSearch… 证据：`adapters/handlers/graphql/local/common_filters/hybrid.go`
- **Near Filters**（source_file）：package common filters ⋮---- import "errors" "fmt" "strconv" "github.com/tailor-platform/graphql" "github.com/tailor-platform/graphql/language/ast" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- "errors" "fmt" "strconv" ⋮---- "github.com/tailor-platform/graphql" "github.com/tailor-platform/graphql/language/ast" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" ⋮---- func NearVectorArgument argumentPrefix, className string, addTarget bool graphql.ArgumentConfig ⋮---- func NearVectorFields prefix string, addTarget bool graphql.InputObjectConfigFieldMap ⋮---- func NearObjectArgument argumentPrefix, className string, addTarget bool graphql.Argume… 证据：`adapters/handlers/graphql/local/common_filters/near_filters.go`
- **Near Object**（source_file）：package common filters ⋮---- import "fmt" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/searchparams" ⋮---- "fmt" ⋮---- "github.com/weaviate/weaviate/entities/dto" ⋮---- "github.com/weaviate/weaviate/entities/searchparams" ⋮---- func ExtractNearObject source map string interface ⋮---- var args searchparams.NearObject 证据：`adapters/handlers/graphql/local/common_filters/near_object.go`
- **Class Builder**（source_file）：package get ⋮---- import "fmt" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" "github.com/weaviate/weaviate/usecases/auth/authorization" ⋮---- "fmt" ⋮---- "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/… 证据：`adapters/handlers/graphql/local/get/class_builder.go`
- **Hybrid Search**（source_file）：package get ⋮---- import "fmt" "os" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/entities/models" ⋮---- "fmt" "os" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/entities/models" ⋮---- func hybridArgument classObject graphql.Object, class models.Class, modulesProvider ModulesProvider, fusionEnum graphql.Enum, graphql.ArgumentConfig ⋮---- func hybridOper… 证据：`adapters/handlers/graphql/local/get/hybrid_search.go`
- **Replication**（source_file）：package get ⋮---- import "fmt" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/cluster/router/types" "github.com/weaviate/weaviate/entities/models" ⋮---- "fmt" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/descriptions" "github.com/weaviate/weaviate/cluster/router/types" "github.com/weaviate/weaviate/entities/models" ⋮---- func replicationEnabled class models.Class bool ⋮---- func consistencyLevelArgument class models.Class graphql.ArgumentConfig 证据：`adapters/handlers/graphql/local/get/replication.go`
- **Sparse Search**（source_file）：package get ⋮---- import "fmt" "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" ⋮---- "fmt" ⋮---- "github.com/tailor-platform/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" ⋮---- func bm25Argument className string graphql.ArgumentConfig ⋮---- func bm25Fields prefix string graphql.InputObjectConfigFieldMap 证据：`adapters/handlers/graphql/local/get/sparse_search.go`
- **Server**（source_file）：package grpc ⋮---- import "context" "encoding/base64" "errors" "fmt" "net" "strconv" "strings" "time" "google.golang.org/grpc/peer" grpc middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc sentry "github.com/johnbellone/grpc-middleware-sentry" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/rest/state" pbv0 "github.com/weaviate/weaviate/grpc/generated/protocol/v0" pbv1 "github.com/weaviate/weaviate/grpc/generated/protocol/v1" "github.com/weaviate/weaviate/usecases/auth/authentication/composer" authErrs "github.com/weaviate/weaviate/usecases/auth/authorization/errors" "github.com/weaviate/weaviate/usecases/config" "github.com/weaviate/weaviate/usecases… 证据：`adapters/handlers/grpc/server.go`
- **Service**（source_file）：package weaviategrpc ⋮---- import "context" "github.com/pkg/errors" pb "github.com/weaviate/weaviate/grpc/generated/protocol/v0" ⋮---- "context" ⋮---- "github.com/pkg/errors" ⋮---- pb "github.com/weaviate/weaviate/grpc/generated/protocol/v0" ⋮---- type Service struct { pb.UnimplementedWeaviateServer } ⋮---- func NewService Service ⋮---- func s Service BatchObjects ctx context.Context, req pb.BatchObjectsRequest pb.BatchObjectsReply, error ⋮---- func s Service Search ctx context.Context, req pb.SearchRequest pb.SearchReply, error 证据：`adapters/handlers/grpc/v0/service.go`
- **Handler**（source_file）：package batch ⋮---- import "context" "fmt" "time" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/grpc/v1/auth" restCtx "github.com/weaviate/weaviate/adapters/handlers/rest/context" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/classcache" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/versioned" pb "github.com/weaviate/weaviate/grpc/generated/protocol/v1" "github.com/weaviate/weaviate/usecases/auth/authorization" "github.com/weaviate/weaviate/usecases/objects" "github.com/weaviate/weaviate/usecases/schema" "github.com/weaviate/weaviate/usecases/schema/namespacing" ⋮---- "context"… 证据：`adapters/handlers/grpc/v1/batch/handler.go`
- **Mock Schema Manager**（source_file）：package mocks ⋮---- import context "context" mock "github.com/stretchr/testify/mock" versioned "github.com/weaviate/weaviate/entities/versioned" ⋮---- context "context" ⋮---- mock "github.com/stretchr/testify/mock" versioned "github.com/weaviate/weaviate/entities/versioned" ⋮---- type MockschemaManager struct { mock.Mock } ⋮---- type MockschemaManager Expecter struct { mock mock.Mock } ⋮---- func m MockschemaManager EXPECT MockschemaManager Expecter ⋮---- func m MockschemaManager GetCachedClassNoAuth ctx context.Context, names ...string map string versioned.Class, error ⋮---- var ca interface{} ⋮---- var r0 map string versioned.Class var r1 error ⋮---- type MockschemaManager GetCachedClassN… 证据：`adapters/handlers/grpc/v1/batch/mocks/mock_schema_manager.go`
- **Mock Weaviate Batch Stream Server**（source_file）：package mocks ⋮---- import context "context" metadata "google.golang.org/grpc/metadata" mock "github.com/stretchr/testify/mock" protocol "github.com/weaviate/weaviate/grpc/generated/protocol/v1" ⋮---- context "context" ⋮---- metadata "google.golang.org/grpc/metadata" ⋮---- mock "github.com/stretchr/testify/mock" ⋮---- protocol "github.com/weaviate/weaviate/grpc/generated/protocol/v1" ⋮---- type MockWeaviate BatchStreamServer Req interface{}, Res interface{} struct { ⋮---- type MockWeaviate BatchStreamServer Expecter Req interface{}, Res interface{} struct { ⋮---- func m MockWeaviate BatchStreamServer Req, Res EXPECT MockWeaviate BatchStreamServer Expecter Req, Res ⋮---- func m MockWeaviate… 证据：`adapters/handlers/grpc/v1/batch/mocks/mock_weaviate_batch_stream_server.go`
- **Filters**（source_file）：package v1 ⋮---- import "fmt" "math" "strconv" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/filters/nested" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" pb "github.com/weaviate/weaviate/grpc/generated/protocol/v1" "github.com/weaviate/weaviate/usecases/schema/namespacing" ⋮---- "fmt" "math" "strconv" ⋮---- "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/filters/nested" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" pb "github.com/weaviate/weaviate/grpc/generated/protocol/v1" "github.com/weaviate/weaviate/usecases/sch… 证据：`adapters/handlers/grpc/v1/filters.go`
- **Parser**（source_file）：package generative ⋮---- import "strings" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" pb "github.com/weaviate/weaviate/grpc/generated/protocol/v1" anthropicParams "github.com/weaviate/weaviate/modules/generative-anthropic/parameters" anyscaleParams "github.com/weaviate/weaviate/modules/generative-anyscale/parameters" awsParams "github.com/weaviate/weaviate/modules/generative-aws/parameters" cohereParams "github.com/weaviate/weaviate/modules/generative-cohere/parameters" contextualaiParams "github.com/weaviate/weaviate/modules/generative-contextualai/parameters" databricksParams "github.com/weaviate/weaviate/modules/generative-databricks/para… 证据：`adapters/handlers/grpc/v1/generative/parser.go`
- **Parse Search Request**（source_file）：package v1 ⋮---- import "fmt" "slices" "github.com/weaviate/weaviate/entities/modelsext" "github.com/weaviate/weaviate/entities/schema/configvalidation" "github.com/weaviate/weaviate/usecases/config" "github.com/go-openapi/strfmt" "github.com/google/uuid" "github.com/pkg/errors" "github.com/weaviate/weaviate/adapters/handlers/graphql/local/common filters" "github.com/weaviate/weaviate/adapters/handlers/grpc/v1/generative" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" schemaConfig "github.com/weaviate/we… 证据：`adapters/handlers/grpc/v1/parse_search_request.go`
- **Prepare Reply**（source_file）：package v1 ⋮---- import "fmt" "math/big" "strings" "time" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/grpc/v1/generative" "github.com/weaviate/weaviate/adapters/repos/db/helpers" "github.com/weaviate/weaviate/usecases/byteops" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema" generate "github.com/weaviate/weaviate/usecases/modulecomponents/additional/generate" additionalModels "github.com/weaviate/weaviate/usecases/modulecomponents/additional/models" "github.com/go-openapi/strfmt" "github.com/pkg/errors" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/dto" "github.com/weavi… 证据：`adapters/handlers/grpc/v1/prepare_reply.go`
- **Service**（source_file）：package v1 ⋮---- import "context" "fmt" "runtime" "time" "github.com/prometheus/client golang/prometheus" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/usecases/auth/authorization" "github.com/weaviate/weaviate/usecases/schema" "github.com/weaviate/weaviate/usecases/schema/namespacing" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/grpc/v1/auth" "github.com/weaviate/weaviate/adapters/handlers/grpc/v1/batch" restCtx "github.com/weaviate/weaviate/adapters/handlers/rest/context" "github.com/weaviate/weaviate/adapters/handlers/rest/state" enterrors "github.com/weaviate/weaviate/entities/errors" "github.com/weaviate/weaviate/usecases/c… 证据：`adapters/handlers/grpc/v1/service.go`
- **Hybrid**（source_file）：package search ⋮---- import "context" "encoding/json" "fmt" "strings" "github.com/mark3labs/mcp-go/mcp" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/rest/filterext" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/search" "github.com/weaviate/weaviate/entities/searchparams" "github.com/weaviate/weaviate/usecases/auth/authorization" "github.com/weaviate/weaviate/usecases/schema/namespacing" ⋮---- "context" "encoding/json" "fmt" "strings" ⋮---- "github.com/mark3labs/mcp-go/mcp" "githu… 证据：`adapters/handlers/mcp/search/hybrid.go`
- **Search**（source_file）：package search ⋮---- import "context" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/mcp/auth" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/usecases/schema/namespacing" ⋮---- "context" ⋮---- "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/mcp/auth" "github.com/weaviate/weaviate/entities/dto" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/usecases/schema/namespacing" ⋮---- type WeaviateSearcher struct { auth.Auth traverser traverser schemaManager namespacing.SchemaManager namespacesEnabled bool logger logrus.FieldLogger } ⋮---- t… 证据：`adapters/handlers/mcp/search/search.go`
- **Server**（source_file）：package mcp ⋮---- import "context" "net/http" mcplib "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/prometheus/client golang/prometheus" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/mcp/auth" "github.com/weaviate/weaviate/adapters/handlers/mcp/create" "github.com/weaviate/weaviate/adapters/handlers/mcp/internal" "github.com/weaviate/weaviate/adapters/handlers/mcp/metrics" "github.com/weaviate/weaviate/adapters/handlers/mcp/read" "github.com/weaviate/weaviate/adapters/handlers/mcp/search" "github.com/weaviate/weaviate/adapters/handlers/rest/state" "github.com/weaviate/weaviate/usecases/auth/authentication/composer" "github.c… 证据：`adapters/handlers/mcp/server.go`
- **File Replication Service**（source_file）：package grpc ⋮---- import "context" "fmt" "io" "github.com/pkg/errors" pb "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/grpc/generated/protocol" "github.com/weaviate/weaviate/entities/schema" "github.com/weaviate/weaviate/usecases/sharding" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ⋮---- "context" "fmt" "io" ⋮---- "github.com/pkg/errors" pb "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/grpc/generated/protocol" "github.com/weaviate/weaviate/entities/schema" "github.com/weaviate/weaviate/usecases/sharding" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ⋮---- type FileReplicationService struct { pb.UnimplementedFileReplic… 证据：`adapters/handlers/rest/clusterapi/grpc/file_replication_service.go`
- **Replication Service**（source_file）：package grpc ⋮---- import "context" "encoding/json" "errors" "time" "github.com/go-openapi/strfmt" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" pb "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/grpc/generated/protocol" "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/shared" "github.com/weaviate/weaviate/cluster/router/types" enterrors "github.com/weaviate/weaviate/entities/errors" "github.com/weaviate/weaviate/entities/filters" "github.com/weaviate/weaviate/entities/storobj" "github.com/weaviate/weaviate/usecases/objects" "github.com/weaviate/weaviate/usecases/replica" "github.com/weaviate/weaviate/usecases/replica/hashtree" replicaTypes "g… 证据：`adapters/handlers/rest/clusterapi/grpc/replication_service.go`
- **Server**（source_file）：package grpc ⋮---- import "context" "encoding/base64" "errors" "fmt" "math" "net" "strings" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/encoding/gzip" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" pb "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/grpc/generated/protocol" "github.com/weaviate/weaviate/adapters/handlers/rest/clusterapi/shared" "github.com/weaviate/weaviate/adapters/handlers/rest/state" enterrors "github.com/weaviate/weaviate/entities/errors" "github.com/weaviate/weaviate/usecases/cluster" "github.com/weaviate/weaviate/usecases/replica/types" "github.com/weaviate/weaviate/usecases/sharding" ⋮---- "context… 证据：`adapters/handlers/rest/clusterapi/grpc/server.go`
- **Object Ttl**（source_file）：package clusterapi ⋮---- import "context" "encoding/json" "fmt" "net/http" "sync/atomic" "time" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/entities/concurrency" "github.com/weaviate/weaviate/entities/errorcompounder" enterrors "github.com/weaviate/weaviate/entities/errors" "github.com/weaviate/weaviate/usecases/config" "github.com/weaviate/weaviate/usecases/monitoring" objectttl "github.com/weaviate/weaviate/usecases/object ttl" "github.com/weaviate/weaviate/usecases/sharding" ⋮---- "context" "encoding/json" "fmt" "net/http" "sync/atomic" "time" ⋮---- "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/entities/concurrency" "github.com/weaviate/weaviate/entities/error… 证据：`adapters/handlers/rest/clusterapi/object_ttl.go`
- **Configure Api**（source_file）：package rest ⋮---- import "context" "encoding/base64" "encoding/json" "fmt" "maps" "net" "net/http" "net/http/pprof" "os" "path/filepath" "regexp" goruntime "runtime" "runtime/debug" "strconv" "strings" "time" "github.com/KimMachineGun/automemlimit/memlimit" armonmetrics "github.com/armon/go-metrics" armonprometheus "github.com/armon/go-metrics/prometheus" "github.com/getsentry/sentry-go" openapierrors "github.com/go-openapi/errors" "github.com/go-openapi/runtime" "github.com/go-openapi/swag" grpc retry "github.com/grpc-ecosystem/go-grpc-middleware/retry" "github.com/pbnjay/memory" "github.com/pkg/errors" "github.com/prometheus/client golang/prometheus" "github.com/prometheus/client golang/… 证据：`adapters/handlers/rest/configure_api.go`
- **Configure Server**（source_file）：package rest ⋮---- import "context" "fmt" "net/http" "os" "path/filepath" "time" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/weaviate/weaviate/adapters/handlers/graphql" "github.com/weaviate/weaviate/adapters/handlers/graphql/utils" "github.com/weaviate/weaviate/adapters/handlers/rest/state" "github.com/weaviate/weaviate/entities/schema" "github.com/weaviate/weaviate/usecases/auth/authentication/anonymous" "github.com/weaviate/weaviate/usecases/auth/authentication/apikey" "github.com/weaviate/weaviate/usecases/auth/authentication/oidc" "github.com/weaviate/weaviate/usecases/auth/authorization" "github.com/weaviate/weaviate/usecases/auth/authorization/adminlist" "github.… 证据：`adapters/handlers/rest/configure_server.go`
- **Handlers Objects**（source_file）：package rest ⋮---- import "context" "errors" "fmt" "strings" middleware "github.com/go-openapi/runtime/middleware" "github.com/go-openapi/strfmt" "github.com/sirupsen/logrus" restCtx "github.com/weaviate/weaviate/adapters/handlers/rest/context" "github.com/weaviate/weaviate/adapters/handlers/rest/operations" "github.com/weaviate/weaviate/adapters/handlers/rest/operations/objects" "github.com/weaviate/weaviate/cluster/router/types" "github.com/weaviate/weaviate/entities/additional" "github.com/weaviate/weaviate/entities/models" "github.com/weaviate/weaviate/entities/schema/crossref" authzerrors "github.com/weaviate/weaviate/usecases/auth/authorization/errors" "github.com/weaviate/weaviate/us… 证据：`adapters/handlers/rest/handlers_objects.go`
- **Handlers Reindex**（source_file）：package rest ⋮---- import "context" "fmt" "sort" "github.com/weaviate/weaviate/adapters/handlers/rest/state" "github.com/weaviate/weaviate/adapters/repos/db" "github.com/weaviate/weaviate/adapters/repos/db/helpers" "github.com/weaviate/weaviate/cluster/distributedtask" "github.com/weaviate/weaviate/entities/models" entschema "github.com/weaviate/weaviate/entities/schema" ⋮---- "context" "fmt" "sort" ⋮---- "github.com/weaviate/weaviate/adapters/handlers/rest/state" "github.com/weaviate/weaviate/adapters/repos/db" "github.com/weaviate/weaviate/adapters/repos/db/helpers" "github.com/weaviate/weaviate/cluster/distributedtask" "github.com/weaviate/weaviate/entities/models" entschema "github.com/… 证据：`adapters/handlers/rest/handlers_reindex.go`
- **Handlers Schema**（source_file）：package rest ⋮---- import "context" "encoding/json" "errors" "fmt" "strings" "sync" "github.com/go-openapi/runtime/middleware" "github.com/sirupsen/logrus" restCtx "github.com/weaviate/weaviate/adapters/handlers/rest/context" "github.com/weaviate/weaviate/adapters/handlers/rest/operations" "github.com/weaviate/weaviate/adapters/handlers/rest/operations/schema" "github.com/weaviate/weaviate/adapters/repos/db" "github.com/weaviate/weaviate/cluster/distributedtask" "github.com/weaviate/weaviate/entities/models" authzerrors "github.com/weaviate/weaviate/usecases/auth/authorization/errors" "github.com/weaviate/weaviate/usecases/monitoring" uco "github.com/weaviate/weaviate/usecases/objects" "git… 证据：`adapters/handlers/rest/handlers_schema.go`
- **Backups Restore**（source_file）：package backups ⋮---- import "net/http" "github.com/go-openapi/runtime/middleware" "github.com/weaviate/weaviate/entities/models" ⋮---- "net/http" ⋮---- "github.com/go-openapi/runtime/middleware" ⋮---- "github.com/weaviate/weaviate/entities/models" ⋮---- type BackupsRestoreHandlerFunc func BackupsRestoreParams, models.Principal middleware.Responder ⋮---- func fn BackupsRestoreHandlerFunc Handle params BackupsRestoreParams, principal models.Principal middleware.Responder ⋮---- type BackupsRestoreHandler interface { Handle BackupsRestoreParams, models.Principal middleware.Responder } ⋮---- func NewBackupsRestore ctx middleware.Context, handler BackupsRestoreHandler BackupsRestore ⋮---- type B… 证据：`adapters/handlers/rest/operations/backups/backups_restore.go`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`README.md`, `docker-compose/Readme.md`, `test/README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`README.md`, `docker-compose/Readme.md`, `test/README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **项目概述**：importance `high`
  - source_paths: README.md, cmd/weaviate-server/main.go, adapters/handlers/rest/server.go, adapters/handlers/grpc/server.go
- **核心概念**：importance `high`
  - source_paths: entities/schema/collection.go, entities/schema/properties.go, entities/models/class.go, entities/models/object.go, entities/models/property.go
- **系统架构**：importance `high`
  - source_paths: adapters/handlers/rest/configure_api.go, adapters/handlers/rest/configure_server.go, adapters/handlers/grpc/v1/service.go, usecases/objects/manager.go, usecases/schema/manager.go
- **API层实现**：importance `high`
  - source_paths: adapters/handlers/rest/handlers_objects.go, adapters/handlers/rest/handlers_schema.go, adapters/handlers/grpc/v1/batch/handler.go, adapters/handlers/grpc/v1/parse_search_request.go, adapters/handlers/grpc/v1/prepare_reply.go
- **LSMKV存储引擎**：importance `high`
  - source_paths: adapters/repos/db/lsmkv/bucket.go, adapters/repos/db/lsmkv/segment_group.go, adapters/repos/db/lsmkv/store.go, adapters/repos/db/lsmkv/compactor_replace.go, adapters/repos/db/lsmkv/compactor_map.go
- **向量索引实现**：importance `high`
  - source_paths: adapters/repos/db/vector/hnsw/index.go, adapters/repos/db/vector/hnsw/insert.go, adapters/repos/db/vector/hnsw/search.go, adapters/repos/db/vector/hfresh/hfresh.go, adapters/repos/db/vector/hfresh/search.go
- **集群与复制机制**：importance `high`
  - source_paths: cluster/raft.go, cluster/store.go, cluster/schema/manager.go, cluster/replication/manager.go, cluster/replication/shard_replication_engine.go
- **多租户支持**：importance `medium`
  - source_paths: usecases/schema/tenant.go, usecases/multitenancy/extensions.go, adapters/repos/db/multitenancy/validator.go, usecases/namespace_cleanup/coordinator.go, adapters/repos/db/index_objects_ttl.go

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `717d7ab73ce3ac632b76b16195a4dd2accda912e`
- inspected_files: `pyproject.toml`, `Dockerfile`, `README.md`, `docker-compose.yml`, `docs/runtime-reindex.md`, `docs/usage_limits.md`, `docs/metrics.md`, `docs/proposals/deferred_reindex_simplifications.md`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 来源证据：Your project scores highest on Maintenance (19.9/20) in an independent trust analysis

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Your project scores highest on Maintenance (19.9/20) in an independent trust analysis
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_123630d837d14b1c83a54d58a53135f4 | https://github.com/weaviate/weaviate/issues/11534 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：bq.rescoreLimit=-1 accepted and silently discarded (no validation)

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：bq.rescoreLimit=-1 accepted and silently discarded (no validation)
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_4ee4e459abca4d2d85de3fa2a5930252 | https://github.com/weaviate/weaviate/issues/11402 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：replicationFactor=-1 accepted and silently normalized to 1 (no validation)

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：replicationFactor=-1 accepted and silently normalized to 1 (no validation)
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_897580adbd7d461abe5642c6dac0c4c9 | https://github.com/weaviate/weaviate/issues/11401 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 失败模式：configuration: bq.rescoreLimit=-1 accepted and silently discarded (no validation)

- Trigger: Developers should check this configuration risk before relying on the project: bq.rescoreLimit=-1 accepted and silently discarded (no validation)
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: bq.rescoreLimit=-1 accepted and silently discarded (no validation). Context: Observed when using node, python, docker
- Why it matters: Developers may misconfigure credentials, environment, or host setup: bq.rescoreLimit=-1 accepted and silently discarded (no validation)
- Evidence: failure_mode_cluster:github_issue | fmev_66059c07dc1bf7e9ba3ae29643f74f6d | https://github.com/weaviate/weaviate/issues/11402 | bq.rescoreLimit=-1 accepted and silently discarded (no validation)
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 失败模式：configuration: replicationFactor=-1 accepted and silently normalized to 1 (no validation)

- Trigger: Developers should check this configuration risk before relying on the project: replicationFactor=-1 accepted and silently normalized to 1 (no validation)
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: replicationFactor=-1 accepted and silently normalized to 1 (no validation). Context: Observed when using node, python, docker
- Why it matters: Developers may misconfigure credentials, environment, or host setup: replicationFactor=-1 accepted and silently normalized to 1 (no validation)
- Evidence: failure_mode_cluster:github_issue | fmev_923df3fcace46105c3011afcdccf8664 | https://github.com/weaviate/weaviate/issues/11401 | replicationFactor=-1 accepted and silently normalized to 1 (no validation)
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 失败模式：configuration: v1.35.20 - Adjust text2vec-google batch limits + qa scripts

- Trigger: Developers should check this configuration risk before relying on the project: v1.35.20 - Adjust text2vec-google batch limits + qa scripts
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.35.20 - Adjust text2vec-google batch limits + qa scripts. Context: Observed when using docker, linux
- Why it matters: Upgrade or migration may change expected behavior: v1.35.20 - Adjust text2vec-google batch limits + qa scripts
- Evidence: failure_mode_cluster:github_release | fmev_2b31f056d2e0d7add2fd46a24be9c52d | https://github.com/weaviate/weaviate/releases/tag/v1.35.20 | v1.35.20 - Adjust text2vec-google batch limits + qa scripts
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 失败模式：configuration: v1.36.14 - Backup GCS module avoid full object scan during listing Fix

- Trigger: Developers should check this configuration risk before relying on the project: v1.36.14 - Backup GCS module avoid full object scan during listing Fix
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.36.14 - Backup GCS module avoid full object scan during listing Fix. Context: Observed when using docker, linux
- Why it matters: Upgrade or migration may change expected behavior: v1.36.14 - Backup GCS module avoid full object scan during listing Fix
- Evidence: failure_mode_cluster:github_release | fmev_595f992aafdc3ac5ef016c95e400760a | https://github.com/weaviate/weaviate/releases/tag/v1.36.14 | v1.36.14 - Backup GCS module avoid full object scan during listing Fix
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 失败模式：configuration: v1.37.3 - Cluster steadiness & async replication Fixes

- Trigger: Developers should check this configuration risk before relying on the project: v1.37.3 - Cluster steadiness & async replication Fixes
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.37.3 - Cluster steadiness & async replication Fixes. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: v1.37.3 - Cluster steadiness & async replication Fixes
- Evidence: failure_mode_cluster:github_release | fmev_1aa71228476d3cb06842102005b0b1ad | https://github.com/weaviate/weaviate/releases/tag/v1.37.3 | v1.37.3 - Cluster steadiness & async replication Fixes
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 能力判断依赖假设

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: 将假设转成下游验证清单。
- Why it matters: 假设不成立时，用户拿不到承诺的能力。
- Evidence: capability.assumptions | github_repo:55072677 | https://github.com/weaviate/weaviate | README/documentation is current enough for a first validation pass.
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 运行可能依赖外部服务

- Trigger: 项目说明出现 external service/cloud/webhook/database 等运行依赖关键词。
- Host AI rule: 确认是否有离线 demo、mock 数据或可替代服务。
- Why it matters: 本地安装成功不等于能力可用，外部服务不可用会阻断体验。
- Evidence: packet_text.keyword_scan | github_repo:55072677 | https://github.com/weaviate/weaviate | matched external service / cloud / webhook / database keyword
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
