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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

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]]