langchain_community.utilities.bibtex.BibtexparserWrapper¶

class langchain_community.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.

Parameters
  • entry (Mapping[str, Any]) –

  • load_extra (bool) –

Return type

Dict[str, Any]

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

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

Parameters

path (str) –

Return type

List[Dict[str, Any]]