Yuque

View as Markdown

The Yuque connector brings approved Yuque knowledge-base pages and optional attachments into AIvis retrieval. It is scoped by repository path and reads only repositories explicitly entered by an administrator.

Use cases

ScenarioRecommendation
Product documentation Q&ACreate one connector per product knowledge base.
Project wiki retrievalUse separate connectors and document sets per project space.
Engineering policy lookupSync only published policy documents intended for the target audience.
Attachment retrievalEnable attachments only when files are approved and parseable.
Mixed-permission spacesSplit repositories or connectors by audience.

What it indexes

Yuque dataIndexing behavior
PagesReads document lists and details, converts HTML bodies to searchable text, and stores title, updated time, and source link.
Hierarchy nodesEmits each page as a page node so search results identify the source.
AttachmentsOptional child documents under their parent Yuque pages.

The connector accepts 1 to 100 unique repositories in namespace/slug format. It does not index unlisted repositories, team membership, comments, collaboration history, drafts, trash, export packages, or space-level analytics.

Prerequisites

  • Prepare a Yuque token that can read the target repositories.
  • Collect repository paths such as acme/product-handbook from Yuque URLs.
  • Confirm the token account can read document details and attachment download URLs.
  • Decide whether attachments should be indexed.
  • Decide the AIvis access group before indexing private content.
  • Allow the AIvis backend to reach www.yuque.com.

Where to get configuration values

Configuration valueWhere to get it
Yuque tokenSign in to Yuque and create a dedicated token from the Token settings page. Grant only the permissions needed for indexing.
Repository path namespace/slugOpen the target repository and take {namespace}/{slug} from https://www.yuque.com/{namespace}/{slug}. You can also use the Yuque developer documentation to verify repository / docs API path parameters.
Document detail and attachment readabilityUse the same token against Yuque document-detail APIs, or open the target document in Yuque, to confirm the token owner can read the body and attachment download URLs.

Configure in AIvis

In the Admin panel, open Connectors, select Yuque, create or choose a Yuque credential, and then enter repository paths and the attachment switch.

FieldHow to fill itNotes
Yuque tokenPaste a dedicated tokenUsed for Yuque API access.
Yuque repositoriesOne namespace/slug per line, such as acme/product-handbookOnly listed repositories are indexed.
Include attachmentsEnabled by defaultReads parseable attachments found in document details.

Do not enter a full URL, profile URL, or namespace-only value. Each repository path must contain both namespace and repository slug.

Sync behavior

The standard Admin-created Yuque connector runs as a polling connector with checkpoint resume.

StageBehavior
Document listReads summaries for each configured repository and builds a stable inventory.
Document detailFetches each page detail and converts HTML body content into searchable text.
AttachmentsEmits attachments as child documents; each page is capped at 1000 attachments.
Incremental windowPages outside the sync updated-time window are skipped.

Attachment URLs must be safe HTTPS URLs. Documents or attachments that cannot be processed are recorded as item failures.

Permissions

The Yuque token determines what AIvis can ingest, but this connector does not synchronize Yuque organizations, teams, repository members, or per-page permissions into AIvis.

AIvis access settingMeaning
Private groupsOnly selected AIvis groups can search documents produced by this connector. Recommended for internal repositories.
PublicEvery eligible AIvis user can search indexed content. Use only for repositories that can be shared with that audience.
Auto permission syncYuque is not supported for this mode.

Use AIvis Private groups for internal repositories. Use Public only when every eligible AIvis user may search every indexed page and attachment. Yuque is not available as an auto permission-sync source.

Verify

  1. Create a connector with one test repository.
  2. Search known page titles, body keywords, and source links.
  3. If attachments are enabled, upload a small parseable attachment and confirm it is searchable.
  4. Search unlisted repositories or private pages and confirm they are absent.
  5. Test assigned and outside AIvis users.
  6. Modify a test page and confirm the next sync updates it.

Troubleshooting

SymptomWhat to check
Authentication failsToken value, expiration, and revocation state.
Repository validation failsRepository path must be namespace/slug and readable by the token account.
Pages are empty or missingCheck that the page is in the configured repository, within the sync window, and readable via detail API.
Attachments are missingCheck the attachment switch, download URL reachability, file type, and size.
Users can search content they should not seeRestrict AIvis access groups or split connectors by repository/audience.

Security and maintenance

  • Use a dedicated Yuque token instead of a broad personal token.
  • Review repository list, attachment switch, token owner, and AIvis groups regularly.
  • Rotate or revoke the token if it may have leaked.
  • Update and revalidate the connector after repository moves, renames, or permission changes.
  • Disable the connector before revoking unused tokens.

Official references