Skip to main content
reStructured Text (RST) 파일은 주로 Python 프로그래밍 언어 커뮤니티에서 기술 문서에 사용되는 텍스트 데이터용 파일 형식입니다.

UnstructuredRSTLoader

다음 워크플로를 사용하여 UnstructuredRSTLoader로 RST 파일에서 데이터를 로드할 수 있습니다.
from langchain_community.document_loaders import UnstructuredRSTLoader

loader = UnstructuredRSTLoader(file_path="./example_data/README.rst", mode="elements")
docs = loader.load()

print(docs[0])
page_content='Example Docs' metadata={'source': './example_data/README.rst', 'category_depth': 0, 'last_modified': '2023-12-19T13:42:18', 'languages': ['eng'], 'filetype': 'text/x-rst', 'file_directory': './example_data', 'filename': 'README.rst', 'category': 'Title'}

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I