Research workflowsChat over documents
Paste the brief into OpenCode, ask three questions whose answers you know, and check each citation opens the right passage.
Explore this idea →
Know what you want
What do you want to achieve — and what will a useful result look like?
Paste the brief into OpenCode, ask three questions whose answers you know, and check each citation opens the right passage.
- Structure itlab-library/↳ documents/*.pdf · *.md↳ index/↳ app/↳ README.md
- Understand itTrace a question end to end: retrieve passages → draft an answer that only uses those passages → show each passage next to its sentence.Input: a question + the curated libraryProcess: retrieve top passages, draft an answer constrained to them, attach a citation to every sentenceOutput: answer with [n] chips, each opening the highlighted passage
- Choose toolsChoose an embedding model, an LLM for drafting, and a viewer that highlights passages; pick local or hosted models deliberately.Embedding model — turns chunks into vectors (local: nomic-embed / bge; hosted: any)LLM — drafts the answer under a 'cite or delete' rulePassage viewer — highlights the cited span in the source document
- Build itPaste the brief into OpenCode, ask three questions whose answers you know, and check each citation opens the right passage.OpenCode · development brief
Source & credit
Chat over documents: Trace a question end to end: retrieve passages → draft an answer that only uses those passages → show each passage next to its sentence.
Every answer, traceable. Owner-supplied illustrative interface; source figures credited below.
AnythingLLM (MIT) — open-source reference implementation (https://github.com/Mintplex-Labs/anything-llm) Open WebUI — reference UI (Open WebUI License, keep branding) (https://github.com/open-webui/open-webui) Owner-supplied illustrative interface; source figures credited below.
Original source ↗