Blueprint: developer education

A technical-books catalogue with context built in.

Browse AUTHOR and TOPIC records, search CHAPTER excerpts stored as BOOK_CHUNK.text by meaning, and keep the source BOOK attached to every recommendation. A question like "practical tracing, backpressure, and recovery patterns" should return not just a matching chunk, but the chapter, book title, and author behind it.

Technical Books GraphRAG Catalogue is a RushDB blueprint that indexes BOOK_CHUNK excerpts for semantic search while keeping each chunk connected to its CHAPTER, BOOK, AUTHOR, and TOPIC records, so recommendations return provenance instead of an isolated excerpt.

Flat chunk search loses the catalogue around the answer.

A useful book explorer should answer a question and show where to read next. Chunk-only retrieval can match a BOOK_CHUNK like "bound queues keep downstream failure visible" while dropping the CHAPTER title, BOOK title, AUTHOR name, and TOPIC that would make the recommendation trustworthy enough to act on, forcing a manual join back to the catalogue metadata.

Before

  • Book metadata and chunks queried separately
  • Recommendations return isolated excerpts
  • Author and topic facets need manual joins
  • Search UI hard-codes every available filter

With RushDB

  • Books, authors, topics, chapters, and chunks stay connected
  • Chapter text is searchable by meaning
  • Recommendations retain source provenance
  • Schema can inform available browse filters

Graph intelligence on ingest

Incoming data becomes queryable graph context.

A BOOK payload nests AUTHOR, TOPIC, CHAPTER, and BOOK_CHUNK records in one import. RushDB links each BOOK_CHUNK to its parent CHAPTER, BOOK, AUTHOR, and TOPIC automatically, so once a managed index is created on BOOK_CHUNK.text, a semantic match carries its full provenance path instead of returning an orphaned excerpt.

01

Normalize the catalogue on import

RushDB types title, name, and text fields as each BOOK, AUTHOR, TOPIC, CHAPTER, and BOOK_CHUNK record is written.

02

Auto-link chunks to provenance

Nested CHAPTER and BOOK_CHUNK entries connect to their parent BOOK, AUTHOR, and TOPIC records automatically on ingest.

03

Enrich retrieval with topic context

Suggested-relationship analysis surfaces TOPIC and AUTHOR overlap across books, strengthening related-book recommendations beyond a single chunk match.

Suggested relationship analysis requires an LLM configured for the project. Suggestions stay in draft form until you approve them, so inferred domain meaning never mutates the graph silently. You can also add explicit relationships through the SDK or API.

Review suggested relationship patterns

Data model

One flexible graph for the workflow.

Start with the payload shape your product already produces. RushDB stores it as Records, infers typed properties, and keeps nested or approved domain relationships queryable.

Schema sketch
Technical-book catalogue payload

Catalogue metadata, chunks, authors, and topics stay connected so retrieval can return provenance.

{
  "isbn": "978-1-0000-0042-1",
  "title": "Reliable Services in Practice",
  "AUTHOR": [{ "name": "Mina Patel" }],
  "TOPIC": [{ "name": "distributed systems" }, { "name": "backpressure" }],
  "CHAPTER": [{
    "title": "Backpressure and recovery",
    "chapterNumber": 7,
    "BOOK_CHUNK": [
      { "chunkId": "chunk-7-03", "text": "Bound queues keep downstream failure visible..." }
    ]
  }]
}

Working example

Recommend a book and cite the chapter.

Search indexed chapter excerpts for a practical distributed-systems question, then return the matching book, chapter, author, and topic context.

Input
BOOK "Reliable Services in Practice"
  AUTHOR "Mina Patel"
  TOPIC "distributed systems"
  CHAPTER "Backpressure and recovery"
    BOOK_CHUNK.text "Bound queues keep downstream failure visible..."
Query
{
  "labels": ["BOOK_CHUNK"],
  "propertyName": "text",
  "query": "practical tracing, backpressure, and recovery patterns"
}
Result
{
  "book": "Reliable Services in Practice",
  "author": "Mina Patel",
  "chapter": "Backpressure and recovery",
  "topic": "distributed systems"
}

TypeScript SDK

A complete starting point.

The example includes the one-time index setup so the retrieval path is explicit.

from rushdb import RushDB

db = RushDB('RUSHDB_API_KEY')

db.records.import_json({
    'label': 'BOOK',
    'data': [{
        'title': 'Reliable Services in Practice',
        'AUTHOR': [{'name': 'Mina Patel'}],
        'TOPIC': [{'name': 'distributed systems'}],
        'CHAPTER': [{'title': 'Backpressure and recovery', 'BOOK_CHUNK': [{'text': 'Bound queues keep downstream failure visible...'}]}],
    }],
})
db.ai.indexes.create({'label': 'BOOK_CHUNK', 'propertyName': 'text'})
matches = db.ai.search({'labels': ['BOOK_CHUNK'], 'propertyName': 'text', 'query': 'practical tracing and recovery patterns'})

Implementation blueprint

Build the books GraphRAG path.

Use this sequence to keep catalogue browsing, semantic retrieval, and citation provenance on the same graph.

  1. 01Import BOOK records with nested AUTHOR, TOPIC, CHAPTER, and BOOK_CHUNK records
  2. 02Create a managed index for BOOK_CHUNK.text
  3. 03Retrieve chunks by semantic fit and optional topic filters
  4. 04Enrich matching chunks with connected book, chapter, author, and topic records
  5. 05Evaluate retrieval against a small question set before expanding the catalogue

Build path

  • Keep BOOK_CHUNK records connected to CHAPTER, BOOK, AUTHOR, and TOPIC records.
  • Use schema to expose available browse filters.
  • Return citations and provenance with each recommendation.
  • Treat chunking and public-data backfill as application concerns.

How it works

Build the smallest useful workflow first.

01

Import the catalogue graph

Store books with nested authors, topics, chapters, and chunks so the browse model and retrieval model share one substrate.

02

Index chapter excerpts

Create one managed index for chunk content and search the catalogue with natural-language questions.

03

Return provenance

Enrich matching chunks with their connected chapter, book, author, and topic records before assembling an answer.

Know where it fits.

Start from a narrow golden path

Ship one browse flow and one cited recommendation flow before expanding the catalogue UI.

Evaluate retrieval explicitly

Maintain a small ground-truth set of questions and measure retrieval quality as chunking or ranking changes.

Questions developers ask.