Skip to main content

Collection

To get support by the Visual Studio Code extension, create a file with the name *.collection.yml or *.collection.yaml.

version: "0.1"
documents:
- id: "doc-1"
file: "path/to/document"
metadata:
name: "Document Name"
link: "https://example.com"

Root Structure

The top-level YAML structure.

PropertyTypeRequiredDescription
versionstringYesFixed to "0.1".
documentsarray<Document>YesList of documents in the collection.

Document

The root configuration object for a document within the AMSL collection.

PropertyTypeRequiredDescription
idstringYesUnique identifier for the document (must be unique across all documents).
filestringYesPath to the document file.
typeDocumentTypeNoThe document type (affects chunking strategy). Default: inferred from file.
metadataDocumentMetadataYesMetadata describing the document.
excludearray<integer>NoList of page numbers (0-indexed) to exclude. Default: [].

DocumentMetadata

Metadata associated with the document.

PropertyTypeRequiredDescription
namestringYesDisplay name of the document.
linkstringYesExternal link associated with the document.

DocumentType

String enum. Defines the document format and chunking strategy. Allowable values:

  • "slides": Presentation slides (PDF or similar).
  • "book": Book or long-form document.
  • "paper": Academic or research paper.
  • "text": Plain text or generic document.

Example

version: "0.1"
documents:
- id: intro-slides
file: slides/intro.pdf
type: slides
metadata:
name: Introduction
link: https://example.com/intro
exclude: [0, 1]
- id: reference-doc
file: docs/reference.md
type: text
metadata:
name: Reference Guide
link: https://example.com/reference