package
0.0.0-20250219065129-52aed497bc00
Repository: https://github.com/infinilabs/coco-server.git
Documentation: pkg.go.dev

# Functions

NewAssemblyAIAudioTranscript returns a new instance AssemblyAIAudioTranscriptLoader.
NewCSV creates a new csv loader with an io.Reader and optional column names for filtering.
NewHTML creates a new html loader with an io.Reader.
NewNotionDirectory creates a new NotionDirectoryLoader with the given file path and encoding.
NewPDF creates a new text loader with an io.Reader.
NewText creates a new text loader with an io.Reader.
WithAudioReader configures the loader to transcribe a local audio file.
WithAudioURL configures the loader to transcribe an audio file from a URL.
WithPassword sets the password for the PDF.
WithAudioReader configures the format of the document page content.
WithTranscriptParams configures the optional parameters for the transcription.

# Constants

Multiple documents with each paragraph as page content.
Multiple documents with each sentence as page content.
Single document with SRT formatted subtitles as page content.
Single document with VTT formatted subtitles as page content.
Single document with full transcript text.

# Variables

ErrMissingAudioSource is returned when neither an audio URL nor a reader has been set using [WithAudioURL] or [WithAudioReader].

# Structs

AssemblyAIAudioTranscriptLoader transcribes an audio file using AssemblyAI and loads the transcript.
CSV represents a CSV document loader.
HTML loads parses and sanitizes html content from an io.Reader.
NotionDirectoryLoader is a document loader that reads content from pages within a Notion Database.
PDF loads text data from an io.Reader.
Text loads text data from an io.Reader.

# Interfaces

Loader is the interface for loading and splitting documents from a source.

# Type aliases

AssemblyAIOption is an option for the AssemblyAI loader.
PDFOptions are options for the PDF loader.
TranscriptFormat represents the format of the document page content.