Skip to main content
Glama

HyDE-augmented embeddings search (Hypothetical Document Embeddings)

obsidian_hyde_search
Read-onlyIdempotent

Generates a synthetic answer to your query, embeds it instead of the raw question, and retrieves relevant notes from your Obsidian vault. Improves accuracy on vague queries.

Instructions

v3.1.0 — HyDE retrieval (Gao et al 2023). Caller agent generates a synthetic answer to its own question, passes it as hypothetical_answer; the server embeds the answer (not the question) and retrieves against the answer-shaped vector. Typically beats raw-query embedding by +2-5 NDCG@10 on under-specified queries (e.g. "what did I learn about X" — the question vector is generic; the answer vector is topically anchored). Uses the same .embed.db as obsidian_embeddings_search. The agent SHOULD generate the hypothetical answer with no vault access (otherwise the loop is circular); 1-3 sentences in the same style/register as your notes. If hypothetical_answer is empty, falls back to embedding the raw query. Requires enquire-mcp build-embeddings first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax hits (default 10)
queryYesThe original user question. Echoed in the response for audit-trail; does NOT influence retrieval when hypothetical_answer is non-empty.
folderNoRestrict to a subfolder (vault-relative)
min_scoreNoDrop hits below this cosine score (default 0.3).
hypothetical_answerYesA 1-3 sentence synthetic answer the agent generates to its own query (without vault access). This is what gets embedded. Make it topically dense + match the register/style of your vault notes.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses key behaviors: uses answer vector not query, typical performance improvement (+2-5 NDCG@10), fallback mechanism. Does not contradict annotations (readOnlyHint, idempotentHint). Lacks mention of rate limits or resource impact, but overall transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short paragraphs, front-loaded with technique name and version, each sentence adding distinct value. No fluff, well-organized for agent parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (HyDE technique) and absence of output schema, the description covers all necessary aspects: purpose, usage, parameter semantics, prerequisites, fallback, and comparison to sibling. Complete for correct agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds significant value: explains why query is used for audit trail, gives guidance on hypothetical_answer style and length, and notes fallback behavior. Enriches schema meaning effectively.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool performs HyDE-augmented embeddings search, explaining the technique and distinguishing it from sibling tools like obsidian_embeddings_search. The verb+resource is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit instructions on when to use this tool (under-specified queries), how to generate the hypothetical answer (no vault access, 1-3 sentences in note register), and what happens if hypothetical_answer is empty. Also mentions prerequisite setup requirement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oomkapwn/enquire-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server