Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.07 KB

provider-sourcey.mdx

File metadata and controls

45 lines (32 loc) · 1.07 KB
title Sourcey integrations
description Build Ask AI over Sourcey docs using LangChain JavaScript.

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:

```bash npm npm install langchain-sourcey @langchain/core ```
yarn add langchain-sourcey @langchain/core
pnpm add 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 Sourcey guide: Using Sourcey with LangChain.