Help us shape the future of Go! Take the 2026 Go Developer Survey

vectorstores

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(root *cli.Command, options Options)

Configure adds the interactive workspace without replacing generated operations.

func ValidateSearchResult

func ValidateSearchResult(result openai.VectorStoreSearchResponse) error

ValidateSearchResult checks the fields used to display a human-readable match.

Types

type AttachOptions

type AttachOptions struct {
	Attributes map[string]any `json:"attributes,omitempty"`
	Chunking   map[string]any `json:"chunking_strategy,omitempty"`
}

AttachOptions uses the API defaults for fields left nil.

type FilePage

type FilePage struct {
	Files []openai.VectorStoreFile
	Next  string
}

type IndexedContent

type IndexedContent struct {
	Text    string
	Partial bool
}

type Options

type Options struct {
	NewService   func(context.Context, *cli.Command) (Service, error)
	ErrorMessage func(error) string
}

Options keeps shared request configuration and safe error wording in assembly.

type SearchPage

type SearchPage struct {
	Results []openai.VectorStoreSearchResponse
	More    bool
}

SearchPage reports continuation without inventing an unsupported API input. The current search request has no cursor, although its response can report more.

type Service

Service separates request execution from terminal input and workspace state. Upload and attachment stay separate so a failed attachment retains its file ID.

func NewService

func NewService(client openai.Client) Service

NewService uses the client's existing authentication, transport, and request policies.

type SourcePage

type SourcePage struct {
	Files []openai.FileObject
	Next  string
}

type StorePage

type StorePage struct {
	Stores []openai.VectorStore
	Next   string
}

StorePage and FilePage retain the cursor for an explicit Load more action.

Jump to

Keyboard shortcuts

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