langchain_community.document_loaders.figma.FigmaFileLoader¶

class langchain_community.document_loaders.figma.FigmaFileLoader(access_token: str, ids: str, key: str)[source]¶

Load Figma file.

Initialize with access token, ids, and key.

Parameters
  • access_token – The access token for the Figma REST API.

  • ids – The ids of the Figma file.

  • key – The key for the Figma file

Methods

__init__(access_token, ids, key)

Initialize with access token, ids, and key.

lazy_load()

A lazy loader for Documents.

load()

Load file

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(access_token: str, ids: str, key: str)[source]¶

Initialize with access token, ids, and key.

Parameters
  • access_token – The access token for the Figma REST API.

  • ids – The ids of the Figma file.

  • key – The key for the Figma file

lazy_load() Iterator[Document]¶

A lazy loader for Documents.

load() List[Document][source]¶

Load file

load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document]¶

Load Documents and split into chunks. Chunks are returned as Documents.

Parameters

text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Examples using FigmaFileLoader¶