package
Version:
v1.0.20
Opens a new window with list of versions in this module.
Published: Sep 17, 2025
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Content struct {
Title string `json:"title"`
Description *string `json:"description"`
}
type DeleteDocumentArgs struct {
URLPrefix string `json:"url_prefix" jsonschema:"required"`
Context string `json:"context,omitempty"`
}
type DocumentOutput struct {
URL string `json:"url"`
Title string `json:"title"`
Description string `json:"description"`
Content string `json:"content"`
Checksum string `json:"checksum"`
}
type GetContextArgs struct {
Context string `json:"context,omitempty"`
}
type GetDocumentArgs struct {
URL string `json:"url" jsonschema:"required"`
Context string `json:"context,omitempty"`
}
type LearnApiArgs struct {
Api string `json:"api" jsonschema:"required"`
Context string `json:"context,omitempty"`
}
type ListDocumentsArgs struct {
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
Context string `json:"context,omitempty"`
}
type SearchDatasetTopKArgs struct {
Query string `json:"query" jsonschema:"required"`
TopK int `json:"top_k" jsonschema:"required"`
Threshold float64 `json:"threshold,omitempty"`
}
type SearchDocChunks struct {
Query string `json:"query" jsonschema:"required"`
Context string `json:"context,omitempty"`
}
type SearchOutput struct {
URL string `json:"url"`
Title string `json:"title"`
Description string `json:"description"`
Content string `json:"content"`
Checksum string `json:"checksum"`
Score float64 `json:"score"`
}
New struct to include score for search results
type UpsertDocumentArgs struct {
URL string `json:"url" jsonschema:"required"`
Content string `json:"content" jsonschema:"required"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Context string `json:"context,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.