Opening
llmModel for a retrieval-only session: search works, query does not.
RagSession
Ingesting a dropped file
Retrieval without generation
Streaming an answer
Configuration
Overlap matters more than it looks. Without it, a sentence split across a chunk boundary is
retrievable from neither half.
Two models at once
A RAG session holds an embedding model and a language model. In a tab that is real memory pressure, so prefer a small embedding model:all-minilm-l6-v2 is a fraction of the size of
the language model beside it.
Closing
pagehide. Because the index is process-wide, a
session you forget to close blocks every later one for the lifetime of the page.