liveBook · Manning

Corpus

As explained in AI-Powered Search

A document corpus is a collection of documents assembled for linguistic analysis or information retrieval.

A corpus is a collection of documents assembled for linguistic analysis or information retrieval. Documents may combine analyzed text fields, while queries filter the corpus into a related document set. section 2.2

Search pipelines examine a corpus at several levels: characters, terms, term sequences, fields, documents, document sets, and the corpus as a whole. Text analyzers can split, lowercase, remove noise, stem or lemmatize, and strip accents before indexing. section 2.2

Use corpus-level evidence to interpret short queries and build search features:

  • Look up query phrases in the corpus to discover common domain-specific interpretations. section 2.5.4
  • Mine term co-occurrence across previous search sessions to infer intent that the query alone leaves implicit. section 2.5.4
  • Extract frequent nouns and verbs from document text for autocomplete or nearest-neighbor vocabularies, filtering rare terms that add noise. section 13.5.1
Figure 2.8 Semantic data encoded into free text content. Characters form character sequences, which form terms, which form term sequences, which form fields, which form documents, which form a corpus.
figure

Trace how characters become terms, fields, documents, and a corpus before search produces a query-specific document set. section 2.2

Filtering concepts from an outdoors corpus

A spaCy pipeline can process document bodies in parallel batches, match noun and verb phrases, exclude the verb “be,” and retain concepts occurring more than five times. This reduces autocomplete noise from misspellings and rare terms. section 13.5.1

How AI-Powered Search covers it

How deep it goes
Explains corpus structure, text-analysis stages, and practical extraction workflows, but does not develop a full knowledge graph.
Examples
Uses phrase lookup, behavioral co-occurrence, and an outdoors dataset processed with spaCy for frequent concept extraction.
What it assumes
Assumes documents and text fields, while introducing their progression from characters and terms to corpus-level analysis.
What you can do after
Apply it via spaCy and search data to interpret queries, extract vocabulary, and filter low-frequency autocomplete candidates.
How it connects
Connects corpus to documents, fields, queries, document sets, text analysis, natural language processing, and autocomplete.

Also explained in

Compare how 4 books explain corpus →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.