encoders

package module
v0.0.0-...-40b5528 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package encoders provides encoders for Google language models.

Google language models are language models that is trained on a large corpus of text data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleEncoder

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

GoogleEncoder encodes a query string into a Google search URL.

func NewGoogleEncoder

func NewGoogleEncoder(
	client genai.Client,
) *GoogleEncoder

NewGoogleEncoder creates a new GoogleEncoder.

func (*GoogleEncoder) Encode

func (e *GoogleEncoder) Encode(
	ctx context.Context,
	query string,
) ([]float64, error)

Encode encodes a query string into a Google search URL.

Jump to

Keyboard shortcuts

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