voyageai

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbedModel_voyage_2 = bellman.EmbedModel{
	Name:             "voyage-2",
	InputMaxTokens:   4000,
	OutputDimensions: 1024,
	Description:      "General-purpose embedding model optimized for a balance between cost, latency, and retrieval quality. Please transition to voyage-3-lite.",
}
View Source
var EmbedModel_voyage_3 = bellman.EmbedModel{
	Name:             "voyage-3",
	InputMaxTokens:   32000,
	OutputDimensions: 1024,
	Description:      "Optimized for general-purpose and multilingual retrieval quality.",
}

https://docs.voyageai.com/docs/embeddings

View Source
var EmbedModel_voyage_3_lite = bellman.EmbedModel{
	Name:             "voyage-3-lite",
	InputMaxTokens:   32000,
	OutputDimensions: 512,
	Description:      "Optimized for latency and cost",
}
View Source
var EmbedModel_voyage_code_2 = bellman.EmbedModel{
	Name:             "voyage-code-2",
	InputMaxTokens:   16000,
	OutputDimensions: 1536,
	Description:      "Optimized for code retrieval (17% better than alternatives)",
}
View Source
var EmbedModel_voyage_finance_2 = bellman.EmbedModel{
	Name:             "voyage-finance-2",
	InputMaxTokens:   32000,
	OutputDimensions: 1024,
	Description:      "Optimized for finance retrieval and RAG.",
}
View Source
var EmbedModel_voyage_large_2 = bellman.EmbedModel{
	Name:             "voyage-large-2",
	InputMaxTokens:   16000,
	OutputDimensions: 1536,
	Description:      "General-purpose embedding model that is optimized for retrieval quality (e.g., better than OpenAI V3 Large). Please transition to voyage-3.",
}
View Source
var EmbedModel_voyage_large_2_instruct = bellman.EmbedModel{
	Name:             "voyage-large-2-instruct",
	InputMaxTokens:   16000,
	OutputDimensions: 1024,
	Description:      "Top of MTEB leaderboard . Instruction-tuned general-purpose embedding model optimized for clustering, classification, and retrieval. For retrieval, please use input_type parameter to specify whether the text is a query or document. For classification and clustering, please use the instructions here . See blog post for details. We recommend existing voyage-large-2-instruct users to transition to voyage-3",
}
View Source
var EmbedModel_voyage_law_2 = bellman.EmbedModel{
	Name:             "voyage-law-2",
	InputMaxTokens:   16000,
	OutputDimensions: 1024,
	Description:      "Optimized for legal and long-context retrieval and RAG. Also improved performance across all domains.",
}
View Source
var EmbedModel_voyage_multilingual_2 = bellman.EmbedModel{
	Name:             "voyage-multilingual-2",
	InputMaxTokens:   32000,
	OutputDimensions: 1024,
	Description:      "Optimized for multilingual retrieval and RAG.",
}

Functions

This section is empty.

Types

type VoyageAI

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

func New

func New(apiKey string) *VoyageAI

func (*VoyageAI) Embed

func (v *VoyageAI) Embed(text string, model bellman.EmbedModel) ([]float64, error)

Jump to

Keyboard shortcuts

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