Technology and methodology
How Semantic Search and RAG Work
Paterika separates passage retrieval from answer generation. Primary sources are found and ranked first; synthesis is an optional later step based on the retrieved material.
Methodology flow
-
1. Corpus
The process begins with the library's bounded collection of patristic, biblical, and synodal texts.
-
2. Segmentation and chunking
Works are organised into sections and smaller passages so retrieval and citations can point to specific source text.
-
Structured cross-references
Alongside embeddings, passages can carry recorded biblical references. Scripture backlinks use these structured relationships independently of semantic retrieval; they are not a required step in every RAG request.
-
3. Embeddings
Embeddings represent passages for semantic comparison beyond exact keyword matching.
-
4. Retrieval and ranking
The query retrieves and ranks relevant passages. The interface supports semantic and lexical modes, plus corpus, author, work, and available authenticity-category filters.
-
5. Primary passages
Search results expose the retrieved passages and their source works. Search remains useful without generating an answer.
-
6. LLM synthesis
If requested, a language model creates an auxiliary presentation from the selected passages. It does not replace retrieval or the original text.
-
7. Cited answer
The presentation identifies supporting sources so readers can return to and verify the primary passages.
Source Cross-References & Scripture Backlinks
Paterika uses structured relationships between patristic passages and biblical verses. Scripture references and backlinks allow users to move from a biblical passage to the patristic texts that reference or discuss it, and from a patristic passage back to the biblical source.
These documented relationships remain distinct from semantic similarities produced by vector embeddings. This prevents an algorithmically related passage from being presented as if it were an explicit historical or textual citation. Semantic search and cross references are separate paths to the same primary sources. Explore patristic scripture backlinks.
Grounding and verification
Search answers “which passages are relevant?” Synthesis offers a reading of those retrieved passages. Keeping these stages distinct makes the evidence visible and allows each citation to be checked against its source.