types

package
v0.4.13-dev.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dataset

type Dataset struct {
	// Dataset ID - must be a valid RFC 1123 hostname
	ID string `json:"id" format:"hostname_rfc1123" binding:"required" example:"asst-12345"`
}

Dataset represents a new knowledge vector space

type Ingest

type Ingest struct {
	Filename         *string                        `json:"filename" `
	Content          string                         `json:"content" binding:"required,base64"`
	FileMetadata     *index.FileMetadata            `json:"metadata"`
	TextSplitterOpts *textsplitter.TextSplitterOpts `json:"text_splitter_opts"`
}

Ingest represents incoming content that should be ingested

type IngestResponse

type IngestResponse struct {
	Documents []string `json:"documents"`
}

type Query

type Query struct {
	Prompt string `json:"prompt" binding:"required"`
	TopK   *int   `json:"topk" example:"5" swaggertype:"integer"`
}

Query represents an incoming user query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL