obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Index Only Frontmatter/Properties for Vault Q&A

Open ONOVAR opened this issue 9 months ago • 1 comments

Description Currently, the Vault Q&A feature indexes entire note contents, which can be slow and inefficient when searching for specific files. I propose an option to index only the frontmatter/properties of notes.

Why This Matters

  • Faster Search: Since most of my notes use frontmatter extensively (aliases, descriptions, tags ...), searching only within frontmatter will significantly speed up retrieval.

  • Reduced Token Usage: By limiting the indexed content to frontmatter, queries will require fewer tokens, improving efficiency and reducing API costs for remote models.

  • More Accurate Results: Instead of scanning entire note texts, which may contain irrelevant information, this approach ensures responses focus only on structured metadata.

Proposed Implementation

  • Add a setting to enable "Frontmatter-Only Indexing" for Vault Q&A.

ONOVAR avatar Mar 13 '25 03:03 ONOVAR

Frontmatter / properties are usually small pieces of keywords, dates and tags that are usually aimed for structured query and full-text search. Leveraging semantic search over it will be awkward. Not sure if it works for most people's use cases.

logancyang avatar Mar 13 '25 04:03 logancyang

It would work for me, as i add a short description of the notes topic and role into a frontmatter tag specifically with the purpose of being good for semantic search

Robin-Haupt-1 avatar May 28 '25 08:05 Robin-Haupt-1