Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
P. Taylor Goetz committed May 25, 2024
1 parent 0e5ccb9 commit 9ef35bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/parsing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Module contains logic for parsing binary blobs into text."""
from langchain.text_splitter import MarkdownHeaderTextSplitter
from langchain_community.document_loaders.parsers import (
BS4HTMLParser,
PDFMinerParser,
)
from langchain.text_splitter import MarkdownHeaderTextSplitter
from langchain_community.document_loaders.parsers.generic import MimeTypeBasedParser
from langchain_community.document_loaders.parsers.msword import MsWordParser
from langchain_community.document_loaders.parsers.txt import TextParser
Expand All @@ -13,6 +13,7 @@

class MarkdownParser(BaseBlobParser):
"""Parser for Markdown blobs."""

def lazy_parse(self, blob: Blob) -> Iterator[Document]: # type: ignore[valid-type]
"""Lazily parse the blob."""
headers_to_split_on = [
Expand Down

0 comments on commit 9ef35bd

Please sign in to comment.