api

package
v0.0.0-...-8699900 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID string `json:"id,omitempty"`

	Content string `json:"content,omitempty"`

	Metadata map[string]string `json:"metadata,omitempty"`
}

type Query

type Query struct {
	Text string `json:"text,omitempty"`

	Limit    *int     `json:"limit,omitempty"`
	Distance *float32 `json:"distance,omitempty"`
}

type Result

type Result struct {
	Document `json:",inline"`
	Distance *float32 `json:"distance,omitempty"`
}

type Server

type Server struct {
	*config.Config
	http.Handler
}

func New

func New(cfg *config.Config) (*Server, error)

Jump to

Keyboard shortcuts

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