The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Update grobid.py (#23399)
Alireza Kashanic39521b70da3
diff --git a/libs/community/langchain_community/document_loaders/parsers/grobid.py b/libs/community/langchain_community/document_loaders/parsers/grobid.pyindex f73f91150c..2ffe2998fa 100644--- a/libs/community/langchain_community/document_loaders/parsers/grobid.py+++ b/libs/community/langchain_community/document_loaders/parsers/grobid.py@@ -48,7 +48,11 @@ class GrobidParser(BaseBlobParser):)soup = BeautifulSoup(xml_data, "xml")sections = soup.find_all("div")- title = soup.find_all("title")[0].text+ titles = soup.find_all("title")+ if titles:+ title = titles[0].text+ else:+ title = "No title found"chunks = []for section in sections:sect = section.find("head")