We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 639d6ab commit 207fabbCopy full SHA for 207fabb
1 file changed
embeddings.py
@@ -2,7 +2,6 @@
2
import os
3
import logging
4
from dotenv import load_dotenv
5
-from langchain_community.document_loaders import DirectoryLoader
6
from langchain_community.document_loaders import GithubFileLoader
7
from langchain.text_splitter import RecursiveCharacterTextSplitter
8
from langchain.schema import Document
@@ -42,7 +41,8 @@ def load_documents(directory: str) -> list[Document]:
42
41
loader = GithubFileLoader(
43
repo="rndmcodeguy20/model-builder",
44
branch="master",
45
- file_filter=lambda file_path: file_path.endswith(".md") and file_path.startswith("docs/"),
+ file_filter=lambda file_path: file_path.endswith(".md")
+ and file_path.startswith("docs/"),
46
access_token=GITHUB_TOKEN,
47
)
48
documents = loader.load()
0 commit comments