Skip to content

langchain_asimov

ASIMOV for LangChain.

AsimovLoader

Bases: BaseLoader

ASIMOV document loader integration.

Setup

Install langchain-asimov:

pip install -U langchain-asimov
Instantiate
from langchain_asimov import AsimovLoader

loader = AsimovLoader(
    module="serpapi",
    url="https://duckduckgo.com/?q=Isaac+Asimov"
)

AsimovModuleNotFound

Bases: Exception

Exception raised when a module cannot be found or imported.

Attributes:

Name Type Description
module_name

The name of the module that was not found

message

Explanation of the error

__init__(module_name, message=None)

Initializes the AsimovModuleNotFound exception.

Parameters:

Name Type Description Default
module_name str

The name of the module that was not found

required
message str | None

Optional custom error message. If not provided, a default message will be generated.

None

__repr__()

Returns a detailed string representation of the exception.

__str__()

Returns a string representation of the exception.