langchain.utilities.bibtex.BibtexparserWrapper¶
- class langchain.utilities.bibtex.BibtexparserWrapper[source]¶
Bases:
BaseModelWrapper around bibtexparser.
To use, you should have the
bibtexparserpython 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.