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

embeddings

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Overview

Package embeddings provides a deterministic OpenAI-compatible embedding service for integration tests.

Index

Constants

View Source
const Dimension = 1536

Dimension is the length of each embedding vector.

View Source
const Port = 3004

Port is the container port used by the testbench.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service implements testbench.Service.

func New

func New() *Service

New returns a new embeddings service.

func (*Service) Handler

func (s *Service) Handler() http.Handler

Handler returns the embedding, health, and debug endpoints.

func (*Service) Name

func (s *Service) Name() string

Name returns the service registration name.

func (*Service) Port

func (s *Service) Port() int

Port returns the service's listening port.

func (*Service) Stateful

func (s *Service) Stateful() bool

Stateful reports whether the service keeps request-specific state.

Jump to

Keyboard shortcuts

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