Skip to main content

Sourcey integrations

还没翻译译自英文(docs.langchain.com)本页 11 段都还没译

Sourcey builds static docs sites.

Use langchain-sourcey to retrieve from a published Sourcey docs site. It reads search-index.json, uses llms-full.txt when present, and returns canonical page URLs for citation.

Installation and setup

Install langchain-sourcey:

npmyarnpnpm

npm install langchain-sourcey @langchain/core

No API key is required.

Point the retriever at the root of a published Sourcey docs build. It reads search-index.json for candidate pages and llms-full.txt for full-page content when that file is present.

Retriever

You can use SourceyRetriever in a standard retrieval pipeline.

import { SourceyRetriever } from "langchain-sourcey";

See the usage example or the Sourcey guide.