mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-24 05:50:18 +00:00
x
This commit is contained in:
@@ -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)
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user