Evaluate glossary grounding for document search

Open
#1,457 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@ningsiyuan1024 is already working on this.

Since Nov 26, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
ai, search

Research direction

Start with the document search design in docs/features/knowledge.md and the entity-graph notes in docs/features/entity-graph.md, then look at the reporting fixture from #1185 to see how the hybrid-search comparison is already measured. The experiment needs a reviewed glossary of canonical terms, aliases and scope rules wired into the existing retrieval path, plus four fixture cases (alias absent from source text, ambiguous alias, changed entry, no glossary term). Done means a reported comparison against hybrid search on the same fixture and context budget: share of queries returning every required passage, wrong-source matches and p95 latency, feeding a decision on wider exposure. Roadmap context is in #1232.

Written by the indexing model from the issue text.

Description

enhancement help wanted up-for-grabs
Component

Knowledge (documents)

Use case

A team asks for the rule for an active account using an internal abbreviation. The authoritative definition uses the full term, while another team uses the same abbreviation for a different metric. Search should connect the question to the reviewed definition for its scope and cite the passage that supports the answer.

Describe the solution you'd like

Test glossary grounding as a retrieval option for one collection. Start with a reviewed glossary and a small set of canonical terms, aliases and applicability rules. Use exact matches to add retrieval candidates through the existing search path.

  • Resolve terms within the authorized request and audience scope. Carry the glossary revision and supporting document locator. An ambiguous alias should return the applicable alternatives or a request for clarification.
  • Keep the glossary as navigation evidence. Require a current, authorized source passage to support an answer that uses its definition.
  • Check replacement, revoked access and erasure for the term, its derived retrieval hints and returned citations.
  • Compare against existing hybrid document search on the same fixture and context budget. Report the share of queries returning every required passage, wrong-source matches and p95 latency. Include an alias absent from the source text, an ambiguous alias, a changed glossary entry and a query without a glossary term. Use the results to decide whether to expose the option more widely.
Describe alternatives you've considered

Hybrid search and namespace-local entity resolution already supply candidates. The experiment tests the additional value of a reviewed, revision-bound glossary link for document passages.

Where the need comes from

An AI tool suggested this feature

Additional context

Part of the knowledge-factory roadmap in #1232. The reporting fixture in #1185 provides a starting point for the test cases. Loom entity graph · Document search

Dominant language
Python
Stars
263
Forks
47
Avg merge
14h 21m
Merged PRs (30d)
873

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/loom

All issues in ClickHouse/loom

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.