界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

search-retrieval

search-retrieval

【效率与协作】Use and troubleshoot Khoj semantic search, query filters, embeddings, reranking, and SearchResponse interpretation.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: search-retrieval description: "Use and troubleshoot Khoj semantic search, query filters, embeddings, reranking, and SearchResponse interpretation." disable-model-invocation: true metadata: disco-role: operating license: AGPL 3.0

Khoj Search Retrieval

Use this sub-skill when working on Khoj semantic search, /api/search, query filters, retrieval ranking, or search-result interpretation.

Route Map

  • Use references/search-api.md for /api/search parameters, SearchType values, result collation, dedupe, reranking, and SearchResponse fields.
  • Use references/query-filters.md for date, file, and word filter syntax; examples; defiltering; and edge cases.
  • Use references/embeddings-and-ranking.md for embedding models, cross-encoder reranking, max_distance, defaults, and performance tradeoffs.
  • Use references/troubleshooting.md for no results, excessive results, bad filters, stale indexes, model/backend failures, user/agent isolation, and reranker failures.
  • Use scripts/inspect_query_filters.py to safely inspect filter terms and defiltered query text without starting the Khoj server.

Boundaries

  • This sub-skill covers semantic search, /api/search, filters, embeddings, reranking, and SearchResponse interpretation.
  • Route content ingestion, sync, update/index rebuild implementation, and file parsing to content-indexing.
  • Route chat, /notes, conversation context construction, and agent response behavior to chat-agents.
  • Route server startup, auth, deployment, Docker, and API infrastructure setup to deployment-api.
  • Route maintainer test selection, development setup, and release scripts to development.

Evidence Basis

This guidance is distilled from Khoj source and tests for search routing, text retrieval, filters, embeddings, API response models, and documented search/filter/performance behavior. It is self-contained for future coding agents and does not require reading original repo docs or tests at runtime.

我的收藏