Building Robust Enterprise Search with LLMs and Traditional IR

glean · Tech · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise search and employee knowledge discovery

Glean needed to help employees find internal information across many SaaS applications, permissions, people, documents, mentions, and company-specific jargon while avoiding a technology-first trap where LLMs, embeddings, or vector search are marketed as solutions without solving the underlying search and retention problem.

Constraints:

Architecture

Glean builds an enterprise search and employee portal around a hybrid retrieval stack. SaaS APIs provide documents, messages, mentions, and permissions. Core information retrieval, synonym handling, query understanding, acronym expansion, document understanding, and vector search generate candidates. A ranking and personalization layer prioritizes results using role, department, team relationships, co-authorship, organization structure, and interaction history. The product expands beyond search into an employee portal with Go links, trending documents, personalized feed, collections, and aggregated mentions from Slack, Jira, GitHub, email, and other apps. LLM features are treated as user-tested additions that still depend on the search backend for freshness and retrieval-augmented generation.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  saas-connectors[SaaS connectors] --> permission-model[Permission model]
  saas-connectors --> enterprise-index[Enterprise index]
  permission-model --> enterprise-index
  query-understanding[Query understanding] --> synonym-expansion[Synonym expansion]
  synonym-expansion --> core-ir-retrieval[Core IR retrieval]
  enterprise-index --> core-ir-retrieval
  enterprise-index --> vector-retrieval[Vector retrieval]
  enterprise-index --> document-understanding[Document understanding]
  core-ir-retrieval --> ranking-layer[Ranking layer]
  vector-retrieval --> ranking-layer
  document-understanding --> ranking-layer
  permission-model --> ranking-layer
  personalization-layer[Personalization layer] --> ranking-layer
  ranking-layer --> employee-portal[Employee portal]
  vector-retrieval --> rag-answer-layer[RAG answer layer]
  rag-answer-layer --> employee-portal
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
SaaS connectors Integrate with enterprise apps to index documents, messages, mentions, and permissions. Permission model, Enterprise index
Permission model Preserves app-level document and message access controls inside the enterprise search index. SaaS connectors, Enterprise index, Ranking layer
Enterprise index Searchable corpus of company resources across SaaS applications. SaaS connectors, Core IR retrieval, Vector retrieval, Document understanding
Query understanding Interprets user queries, project names, acronyms, and internal terms. Core IR retrieval, Synonym expansion, Ranking layer
Synonym expansion Expands queries to related terms and acronyms for better matching. Query understanding, Core IR retrieval
Core IR retrieval Traditional information-retrieval candidate generation based on mature ranking signals. Enterprise index, Query understanding, Ranking layer
Vector retrieval Embedding-based semantic retrieval used as one candidate source among several. Enterprise index, Ranking layer, RAG answer layer
Document understanding Assesses document quality and relevance as part of ranking. Enterprise index, Ranking layer
Personalization layer Uses role, department, team, co-author, org-structure, and interaction signals to adjust relevance. Ranking layer, Employee portal
Ranking layer Combines IR, vector, query, document, permission, and personalization signals into user-facing result order. Permission model, Core IR retrieval, Vector retrieval, Document understanding, Personalization layer, Employee portal
Employee portal Retained user surface for search, Go links, feed, trending documents, collections, and aggregated mentions. Ranking layer, RAG answer layer
RAG answer layer LLM-powered answer or chat features that use search results as backend context when useful. Vector retrieval, Employee portal

Data flow

SaaS connectors index enterprise documents, messages, and permission metadata into a search corpus. User queries pass through query understanding and synonym/acronym expansion, then retrieve candidates through traditional IR and vector search. Document understanding and personalization signals such as department, team relationships, co-authorship, and interactions feed the ranking layer. Results surface in search and in a broader employee portal with Go links, feeds, trending documents, collections, and aggregated mentions. When LLM answers are used, search still supplies fresh context for retrieval-augmented generation rather than expecting the model to know current enterprise data.

5 supporting quotes
“way to sort of get the permissions information and get the messaging information. But now a lot of SaaS apps have really robust APIs that really let. [00:04:50] Index everything that you'd want though though. That's two. And the third sort of big macro reason why it's”article, stated
“We do a hybrid approach both using, you know, core IR signal synonymy. Query accentuation with things like acronym expansion, as well as stuff like vector search”article, stated
“our understanding of all of your interactions with people around you. Our personalization layer, our good work on ranking is what makes us.”article, stated
“all of your tags across all of your apps in one place in the last whatever, you know, time. [00:09:14] So it's like all of the hundred Slack pings that you have, plus the Jira pings, plus the, the, the email, all of that in one place is super useful to”article, stated
“those methods all in all involve using search in the backend to, to sort of get the context to generate the answer.”article, stated

Why this architecture

Glean avoids an embeddings-only or LLM-first architecture because search quality comes from sustained ranking rigor and subproblem tuning. Hybrid retrieval keeps mature IR signals and adds vector search where it helps. Personalization is necessary because enterprise relevance depends on role, team, authorship, and interactions. The employee portal exists because search alone does not keep users returning. RAG is used as an LLM integration pattern because enterprise answers require fresh indexed context.

5 supporting quotes
“it's not about how advanced or how complex the technology is, it's about the rigor and intellectual honesty that you put into tuning the ranking algorithm.”article, stated
“problems, right, to create a nice experience. [00:14:24] So to answer your question, also, vector search we do, but it is not the only way we get results. We do a hybrid approach both using, you know, core IR signal synonymy. Query accentuation with things like acronym expansion,”article, stated
“understanding on top of that, which includes personalization, understanding. [00:14:50] If you're an engineer, you're probably not looking for Salesforce documents. You know, you're probably looking for documents that are published or co-authored by people in your team, in your immediate”article, stated
“Search in itself is not a compelling enough use case to keep people drawn to your product. It's easy to say Google search is like that, but Google Search was also in an era where that was the only website people knew, and now it's not like that. When you are”article, stated
“You just can't train these things fast enough and cost efficiently enough to constantly index new, new. Sources of data”article, stated

Models used: Vector embedding models for semantic search · LLMs for experimental chat and retrieval-augmented answers · GPT-4 as an example synthetic data generator for specialized NLP tasks · Smaller distilled or LoRA-adapted models for task-specific production use

Scale

Alternatives considered (roads not taken)

Rely on AI-powered vector search as the core differentiator

Rejected because: Glean treats vector search as useful but insufficient; user experience depends on ranking rigor, IR, synonyms, query understanding, and personalization.

“It's useful to say we are AI powered, LLM powered vector search, cutting edge, state-of-the-art, yada, yada, yada.”article, stated
“work on ranking is what makes us. [00:15:09] Good. It's not sort of, Hey, drop in LLM and embeddings and we become amazing at search. That's not how we think it [00:15:16] works. Yeah. I think there's a lot of polish that mix into quality products, and that's the difference that you see between”article, stated

Ship only a search engine

Rejected because: A search box alone is easy for employees to forget, so the product became a portal with feeds, mentions, Go links, and proactive surfaces.

“No, they're not gonna remember who you are. They're gonna use it once and completely forget to really get that retention. You need to sort of go from being just a search engine to exactly what you said, Sean, to being sort of an employee portal that does”article, stated
“You need to sort of go from being just a search engine to exactly what you said, Sean, to being sort of an employee portal”article, stated

Train LLMs to answer fresh enterprise questions directly

Rejected because: Models cannot be retrained quickly or cheaply enough for fresh enterprise data; search-backed retrieval remains necessary.

“Today's understanding of large language models is that it cannot do anything that's highly fresh. You just can't train these things fast enough and cost efficiently enough to constantly index new, new. Sources of data and then serve it at the same time in”article, stated
“The best thing that you can get that's close to it is what, you know, the fancy term is retrieval, augmented generation”article, stated

Build document Q&A before solving indexing and user workflow

Rejected because: The interview describes document-Q&A startups discovering they need all-document indexing and enterprise search as the real product.

“documents, and then they struggle with selling, or they're like, or people just ask, Hey, but I don't ask questions to my documents. Like, you realize this is just not a flow that I do, like I, oh no. [00:32:22] I ask questions in general, but I don't”article, stated
“anything. [00:32:39] And then they'll say, okay, how will you take all my document? Oh, it seems like we have to build some sort of indexing mechanism and then from one thing to the other, you get to a point where it's like we're building enterprise search and we're building”article, stated

Patterns

hybrid-search (retrieval)

Glean combines traditional IR, synonym/query understanding, acronym expansion, document understanding, and vector search instead of relying on embeddings alone.

“We do a hybrid approach both using, you know, core IR signal synonymy.”article, stated
“Query accentuation with things like acronym expansion, as well as stuff like vector search, which is also useful. And then we apply our level of ranking understanding on top of that, which includes personalization, understanding.”article, stated

retrieval-ranking (retrieval)

The system depends on slow, rigorous ranking-tuning work and personalization rather than a single advanced model.

“the rigor and intellectual honesty that you put into tuning the ranking algorithm.”article, stated
“Our personalization layer, our good work on ranking is what makes us. [00:15:09] Good. It's not sort of, Hey, drop in LLM and embeddings and we become amazing at search.”article, stated

query-rewriting (retrieval)

Query understanding, synonyms, and acronym expansion are treated as independent retrieval subproblems that improve internal search.

“So one task in search is query understanding what does the query mean?”article, stated
“What are other synonyms for this thing that we can also match on?”article, stated

rag-retrieval (generation)

LLM answers depend on retrieval in the backend so current enterprise context can be provided to the model.

“retrieval, augmented generation, but it's a fancy way of saying just do the search in the background and then use the results to create the actual response.”article, stated

synthetic-data-generation (data)

The interview highlights using GPT-4 to generate synthetic NER training data as a practical production NLP pattern.

“I can throw GPT4 at it to generate a ton of synthetic data, which looks actually really good.”article, stated

model-distillation (modeling)

Large-model synthetic data can be distilled into smaller, faster, cheaper task-specific models.

“low rank adaptation, which is distilling this large model into a much smaller, cost effective, fast model that does that task really well.”article, stated

latency-optimization (performance)

The interview treats search and chat latency as a direct engagement risk, so LLM features must optimize response time.

“A linear line that says the more the latency, the less the engagement, so there's always gonna be some drop off.”article, stated

Tradeoffs

Use hybrid retrieval

Chose Traditional IR plus vector search and ranking over Embeddings or LLMs as the only retrieval mechanism.

Rationale: Mature search needs many tuned subcomponents; vector search is useful but not sufficient.

“[00:14:24] So to answer your question, also, vector search we do, but it is not the only way we get results. We do a hybrid approach both using, you know, core IR signal synonymy.”article, stated
“there's so many tough sub problems that it breaks search down into and then just gets each of those problems, right”article, stated

Become an employee portal

Chose Search plus feed, mentions, Go links, and proactive surfaces over A standalone enterprise search box.

Rationale: The portal creates repeated daily value and retention that search alone may not.

“Just being able to see, not just, so documents that are trending in your sub-organization”article, stated
“limited set of them, as well as now we've launched something called Mentions, which is super useful, which is all of your tags across all of your apps in one place in the last whatever, you know, time. [00:09:14] So it's like all of the hundred Slack pings that you have, plus the Jira”article, stated

Experiment with LLM chat based on user response

Chose Launch what users like best over Shipping chat because it is fashionable.

Rationale: Glean positions LLM features as user-tested product additions, not technology-first mandates.

“we're experimenting with many technologies that use modern AI and LLMs, and we will launch what we think users like best.”article, stated

Use search-backed generation for freshness

Chose RAG over retraining for current information over Expecting an LLM to memorize fresh enterprise data.

Rationale: Enterprise information changes too quickly for constant retraining, so fresh context must be retrieved at query time.

“retrieval, augmented generation, but it's a fancy way of saying just do the search in the background”article, stated
“So to answer the question about freshness, I would say it is possible to do with these methods, but those methods all in all involve using search in the backend to, to sort of get the context to generate the answer.”article, stated

Gotchas (what bit them)

AI buzzwords can obscure whether search is actually better.

Root cause: Users may see one or two good queries and one bad query and still be unable to evaluate whether the engine is genuinely smart.

Resolution: Invest in painstaking ranking tuning and honest evaluation rather than technology marketing alone.

“how often does that translate to better user experience is sort of, a fuzzy area”article, stated
“And it takes time to evaluate and understand how a certain engine is doing.”article, stated

Pure search has weak retention as an enterprise product.

Root cause: Employees may use a new search tool once and forget it unless it becomes part of their daily portal workflow.

Resolution: Add portal features such as feed, mentions, trending docs, collections, and Go links.

“Search in itself is not a compelling enough use case to keep people drawn to your product.”article, stated
“to really get that retention. You need to sort of go from being just a search engine”article, stated

Fresh enterprise information cannot be solved by retraining LLMs fast enough.

Root cause: LLMs cannot constantly index new sources and serve current answers cost-efficiently.

Resolution: Use search-backed retrieval or RAG to provide fresh context at answer time.

“You just can't train these things fast enough and cost efficiently enough to constantly index new, new. Sources of data”article, stated
“all involve using search in the backend to, to sort of get the context to generate the answer.”article, stated

Document-Q&A startups often rediscover enterprise search the hard way.

Root cause: Users do not naturally ask every question to a fixed document set, and answering across all documents requires indexing, permissions, and search infrastructure.

Resolution: Start from the user's information-retrieval problem and build indexing before layering LLM answers on top.

“People know how to do that, right? We've seen a couple of demos on that.”article, stated
“from one thing to the other, you get to a point where it's like we're building enterprise search and we're building an LM on top of it”article, stated

Final model-training cost understates true experimentation cost.

Root cause: Architecture exploration, hyperparameter tuning, failed runs, and debugging can cost much more than the final successful run.

Resolution: Account for total experimentation cost, not only the final training step.

“One, and one of the, the valuable things to note when you're talking about this cost is this is the cost of the final training step. [00:42:24] It's not the cost of the entire process.”article, stated
“in total it's about 10 x this amount cost. Because you have to experiment.”article, stated

Evaluation

The case emphasizes long-term relevance tuning and user-product evaluation rather than one benchmark. Glean evaluates search by the real user experience of ranking, personalization, retention, and whether portal features draw employees back. The broader interview also calls out latency-engagement tradeoffs, freshness, cost transparency, and the need to test whether LLM features solve real problems rather than merely demonstrate technology.

Metrics: Search result relevance and ranking quality · User retention from employee portal usage · Personalization fit by role, team, authorship, and interactions · Freshness of indexed enterprise data · Latency versus engagement · Infrastructure and model-training cost · Customer productivity argument such as 10 to 20 searches per day

4 supporting quotes
“And it takes time to evaluate and understand how a certain engine is doing.”article, stated
“A linear line that says the more the latency, the less the engagement, so there's always gonna be some drop off.”article, stated
“it's actually quite difficult when you're in, generally bucketed in the space of productivity”article, stated
“What it does cater to is there's different incentive structures, right?”article, stated

Outcomes

Concrete scale includes company founding in 2019, a 2022 $1b valuation, companies using 10 to 100 SaaS apps, all mentions from Slack/Jira/GitHub/email in one place, and a productivity framing around 10 to 20 searches per employee per day. Search-quality metrics are not disclosed.

4 supporting quotes
“Glean is an enterprise search company founded in 2019 by a team of former Google engineers”summary, stated
“The company reached unicorn status with a Series C led by Sequoia at a $1 billion valuation in 2022.”summary, stated
“new logos across Databricks, Canva, Confluent, Duolingo, Samsara, and more in the Fortune 50”article, stated
“Search in itself is not a compelling enough use case to keep people drawn to your product.”article, stated