query

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package query provides API to run query understanding and generate user intent that best describes the query.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoCommand means the query does not include a command.
	ErrNoCommand = errors.New("missing command")

	// ErrInvalidCommand means the query has unsupported command.
	ErrInvalidCommand = errors.New("invalid command")
)

Functions

func Understand

func Understand(q string) (*pb.Intent, error)

Understand parses query q and generates an intent that best describes the query. It returns an error if query understanding fails.

Types

This section is empty.

Directories

Path Synopsis
feature
ping
Package ping parses query as a ping intent.
Package ping parses query as a ping intent.
plot
Package plot is responsible for parsing plot-command.
Package plot is responsible for parsing plot-command.

Jump to

Keyboard shortcuts

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