- Document의 적재와 검색RAG(Retrieval-Augmented Generation) 구조에서 가장 중요한 단계는 문서의 적재와 효율적인 검색입니다.이번 예시에서는 **LangChain의 GitLoader**와 Chroma 벡터 데이터베이스를 이용하여GitHub 저장소의 문서를 벡터화하고 검색하는 방법을 살펴봅니다. 아래 코드는 GitHub에 있는 langchain-ai/langchain 저장소에서.mdx 파일만 필터링하여 문서를 로드하는 예시입니다.from langchain_community.document_loaders import GitLoaderdef file_filter(file_path: str) -> bool: return file_path.endswith(".mdx")loader..