Sourcey 통합
Sourcey 통합
LangChain JavaScript로 게시된 Sourcey 문서 사이트에서 검색하는 방법을 알아봅니다.
Sourcey는 정적 문서 사이트를 구축합니다.
langchain-sourcey를 사용해 게시된 Sourcey 문서 사이트에서 검색하세요. search-index.json을 읽고, llms-full.txt가 있으면 사용하며, 인용을 위해 canonical 페이지 URL을 반환합니다.
출처: 문서
본문
설치 및 설정(Installation and setup)
langchain-sourcey를 설치하세요:
npm install langchain-sourcey @langchain/core
yarn add langchain-sourcey @langchain/core
pnpm add langchain-sourcey @langchain/core
API 키가 필요하지 않습니다.
검색기를 게시된 Sourcey 문서 빌드의 루트를 가리키게 하세요. 후보 페이지는 search-index.json을, 해당 파일이 있을 때 전체 페이지 콘텐츠는 llms-full.txt를 읽습니다.
검색기(Retriever)
SourceyRetriever를 표준 검색 파이프라인에서 사용할 수 있습니다.
import { SourceyRetriever } from "langchain-sourcey";
사용 예시 또는 Sourcey 가이드를 참조하세요.
더 알아보기 (Learn more)
- 이 문서를 MCP로 연결하면 Claude, VSCode 등에서 실시간 답변을 받을 수 있어요.
- GitHub에서 이 페이지 편집하기 또는 이슈 제출하기.