RAG & Vector Lab

Eight interactive labs: text chunking, embeddings, semantic search, vector databases, the RAG pipeline, advanced retrieval, chat with your documents and evaluation, plus an assistant builder for your own documents and experiments that run in the browser.

44interactive experiments

GraphRAG Lab

Build a knowledge graph from the passages, retrieve locally through entities and detect communities, in a transparent educational simulation.

  • 3Experiments
  • 1Lessons
  • 4Algorithms & concepts

Every experiment is labelled by its nature: "Real local execution" is genuinely computed in your browser or on your site's server, "Educational simulation" explains an idea without claiming to measure a real system, and "External integration" needs a service the site administrator configures. The local vectors here are lexical hashed vectors (not semantic embeddings) and are labelled as such.

Experiments

Educational simulation L2

Building the knowledge graph

Entities from a fixed lexicon and co-occurrence edges.

Educational simulation L3

Communities and the global view

Label propagation to find communities and the member list of each.

Lessons

Concept

The GraphRAG idea

GraphRAG extracts entities and relations from documents to build a knowledge graph, then uses it for local retrieval (from the question's entities to their neighbours) or for global questions through community summaries. In this plugin the extraction uses a fixed lexicon, not a language model.

Read the lesson

Algorithms and concepts in this lab

Algorithm / conceptLabNatureComplexityNote
Lexicon entity extractionGraphRAG LabEducational simulationO(n·e)22 entities with Arabic/English forms; not NER.
Co-occurrence graphGraphRAG LabEducational simulationO(n·e²)An edge for each entity pair in one passage, weighted by count.
Label propagationGraphRAG LabEducational simulationO(it·E)Deterministic community detection by weighted neighbour voting.
Local graph searchGraphRAG LabEducational simulationO(E)From the question's entities to their neighbours to their passages.