Overview
Sourcey already emits the files this retriever needs. UseSourceyRetriever to retrieve from a published Sourcey docs site. It
reads search-index.json, uses llms-full.txt when present, and returns
Document objects with canonical page URLs in metadata.source.
Integration details
| Retriever | Source | Package |
|---|---|---|
SourceyRetriever | Published Sourcey docs sites. | langchain-sourcey |
Setup
Installation
Instantiation
siteUrl should point at the root of a published Sourcey docs build.
Usage
Use within a chain
Install a chat model package. This example uses OpenAI:Sourcey site requirements
For clean retrieval, the published Sourcey site should:- publish
search-index.json - publish
llms-full.txt - set
siteUrlinsourcey.config.tsso returned citations are canonical
llms-full.txt is not available, SourceyRetriever falls back to
extracting text from the matched HTML page.
More
- Sourcey guide: Using Sourcey with LangChain
- Package: langchain-sourcey on npm
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

