service

package
v0.0.0-...-05b7d1b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Completion string
}

Result is the result of an embedder

type Service

type Service interface {
	Completion(prompt string) (*Result, error)
}

Service represents an LLM service

func ServiceOfType

func ServiceOfType(strType string, config map[string]string) Service

ServiceOfType returns a service for the provided type

Jump to

Keyboard shortcuts

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