Build a scripture-grounded voice AI with RAG and ElevenLabs

A creator built Prabhupada AI, a RAG voice app over 162k ancient verses, answering with sources and a cloned voice.

Used for
Creative
Skill needed
Requires coding
Shown in video
Partial demo
Summary based on
Transcript
The Swag Wala PMWatch on YouTube

How I Built a Voice AI Using 162,000 Ancient Verses!

Published Dec 4, 202659:311,065 views52 likes

Key moments

  • 4:16First live answer with sources
  • 8:41Voice demo in Prabhupada's voice
  • 30:340.24s response time with FAISS

What they made

A working voice app that answers questions from 162k indexed verses with source citations and near-instant responses.

0.24s response time; 162k chunks

30:34

How they did it

  1. AI40:07

    Claude generated a scraper using Requests and BeautifulSoup for static pages and Playwright for JavaScript-heavy pages, with pauses and checkpoints.

    Stated in video · Claude
  2. AI47:16

    Claude chunked the scraped texts into ~400-word overlapping segments, preserving book labels, producing 161,724 chunks.

    Stated in video · Claude
  3. AI51:36

    Voyage AI embedded the chunks into a vector database, processing ~20M tokens in batches of 50 requests.

    Stated in video · Voyage AI
  4. AI27:41

    FAISS semantic search was implemented to retrieve relevant verses quickly, reducing query time to 0.24 seconds.

    Stated in video · FAISS
  5. AI24:19

    Claude Sonnet 3.5 generated answers from retrieved context, including Sanskrit verses and explanations.

    Stated in video · Claude
  6. AI8:41

    ElevenLabs synthesized the answer in a voice resembling Srila Prabhupada, including Sanskrit pronunciation.

    Stated in video · ElevenLabs
  7. Human33:06

    The creator deployed the app on Railway to handle the memory-intensive RAG pipeline.

    Stated in video · Railway

What you can reuse

  • RAG with source citations reduces hallucinations for knowledge-heavy domains.
  • Chunking strategy should match the embedding model's token limits and preserve context with overlaps.
  • FAISS speeds up retrieval over large vector databases, enabling near-instant responses.

Trade-offs

  • The demo uses a static database; dynamic updates for changing content are not implemented.
  • Scraping may face legal restrictions; the creator checked terms of service.
  • Embedding cost was approximately $18–$50 for the initial run.

AI-generated case summaries can contain mistakes. Report an error

Related cases

Preserve history and culture

Index an 1890 genealogy book PDF with ChatGPT

A genealogist used ChatGPT to extract every personal name from an unindexed 1890 county history and produce a searchable PDF name index.

ChatGPTAncestry6.5K views