tui

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the main application state for the TUI embedding visualization.

func NewModel

func NewModel(ollamaClient *ollama.Client, qdrantClient *qdrant.Client, version string) Model

NewModel creates and initializes a new TUI Model with the given clients and version.

func (Model) Init

func (model Model) Init() tea.Cmd

Init initializes the model by loading existing points from the database.

func (Model) Update

func (model Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles all incoming messages and updates the model state accordingly.

func (Model) View

func (model Model) View() string

View renders the complete UI as a string.

Jump to

Keyboard shortcuts

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