Lesson overview

Generate and store local embeddings

Generate and store local embeddings — RAG with local embeddings. Pin the embedding model; Save embed.mjs and index.mjs; Check vector integrity. Practical assignment: Lab evidence.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Pin the embedding model
  • Save embed.mjs and index.mjs
  • Check vector integrity

Practical assignment

Lab evidence

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Create a traceable corpus
  2. Chunk without losing meaning
  3. Generate and store local embeddings
  4. Retrieve and inspect ranked evidence
  5. Generate answers with checked citations
  6. Evaluate retrieval and maintain the index