This commit is contained in:
Eugene Yurtsev
2023-05-30 14:09:00 -04:00
parent de7ab6be16
commit ebfd539e43
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ Begin:"""
def _extract_content_from_tag(html: str, tag: str) -> List[str]:
"""Extract content from the given tag."""
soup = BeautifulSoup(html, "html.parser")
soup = BeautifulSoup(html, "lxml")
queries = []
for query in soup.find_all(tag):
queries.append(query.text)

View File

@@ -12,7 +12,7 @@ from langchain.callbacks.manager import (
AsyncCallbackManagerForChainRun,
)
from langchain.chains.base import Chain
from langchain.chains.research.multiselection import (
from langchain.chains.classification.multiselection import (
IDParser,
_extract_content_from_tag,
MultiSelectChain,