langchain.utilities.bibtex.BibtexparserWrapper¶

class langchain.utilities.bibtex.BibtexparserWrapper[source]¶

Bases: BaseModel

Wrapper around bibtexparser.

To use, you should have the bibtexparser python package installed. https://bibtexparser.readthedocs.io/en/master/

This wrapper will use bibtexparser to load a collection of references from a bibtex file and fetch document summaries.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

get_metadata(entry: Mapping[str, Any], load_extra: bool = False) Dict[str, Any][source]¶

Get metadata for the given entry.

load_bibtex_entries(path: str) List[Dict[str, Any]][source]¶

Load bibtex entries from the bibtex file at the given path.

validator validate_environment  »  all fields[source]¶

Validate that the python package exists in environment.

model Config[source]¶

Bases: object

Configuration for this pydantic object.

extra = 'forbid'¶