Retriever | Source | Package |
---|---|---|
ZoteroRetriever | Zotero API | langchain-community |
langchain-zotero-retriever
package. We also require the pyzotero
dependency:
ZoteroRetriever
parameters include:
k
: Number of results to include (Default: 50)type
: Type of search to perform. “Top” retrieves top level Zotero library items, “items” returns any Zotero library items. (Default: top)get_fulltext
: Retrieves full texts if they are attached to the items in the library. If False, or no text is attached, returns an empty string as page_content. (Default: True)library_id
: ID of the Zotero library to search. Required to connect to a library.library_type
: Type of library to search. “user” for personal library, “group” for shared group libraries. (Default: user)api_key
: Zotero API key if not set as an environment variable. Optional, required to access non-public group libraries or your personal library. Fetched automatically if provided as ZOTERO_API_KEY environment variable.query
, the retriever provides these additional search parameters:
itemType
: Type of item to search for (e.g. “book” or “journalArticle”)tag
: for searching over tags attached to library items (see search syntax for combining multiple tags)qmode
: Search mode to use. Changes what the query searches over. “everything” includes full-text content. “titleCreatorYear” to search over title, authors and year.since
: Return only objects modified after the specified library version. Defaults to return everything.