Quip
Quip is a collaborative productivity software suite for mobile and Web. It allows groups of people to create and edit documents and spreadsheets as a group, typically for business purposes.
A loader forQuip
docs.
Please referhere to know how to get personal access token.
Specify a listfolder_ids
and/orthread_ids
to load in the corresponding docs into Document objects, if both are specified, loader will get allthread_ids
belong to this folder based onfolder_ids
, combine with passedthread_ids
, the union of both sets will be returned.
- How to know folder_id ?go to quip folder, right click folder and copy link, extract suffix from link as folder_id. Hint:
https://example.quip.com/<folder_id>
- How to know thread_id ?thread_id is the document id. Go to quip doc, right click doc and copy link, extract suffix from link as thread_id. Hint:
https://exmaple.quip.com/<thread_id>
You can also setinclude_all_folders
asTrue
will fetch group_folder_ids andYou can also specify a booleaninclude_attachments
to include attachments, this is set to False by default, if set to True all attachments will be downloaded and QuipLoader will extract the text from the attachments and add it to the Document object. Currently supported attachment types are:PDF
,PNG
,JPEG/JPG
,SVG
,Word
andExcel
. Also you can sepcify a booleaninclude_comments
to include comments in document, this is set to False by default, if set to True all comments in document will be fetched and QuipLoader will add them to Document objec.
Before using QuipLoader make sure you have the latest version of the quip-api package installed:
%pip install--upgrade--quiet quip-api
Examples
Personal Access Token
from langchain_community.document_loaders.quipimport QuipLoader
loader= QuipLoader(
api_url="https://platform.quip.com", access_token="change_me", request_timeout=60
)
documents= loader.load(
folder_ids={"123","456"},
thread_ids={"abc","efg"},
include_attachments=False,
include_comments=False,
)
Related
- Document loaderconceptual guide
- Document loaderhow-to guides