search

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FastPreset     = gobed.FastPreset
	BalancedPreset = gobed.BalancedPreset
	AccuratePreset = gobed.AccuratePreset
	CAGRAPreset    = gobed.CAGRAPreset
	CustomPreset   = gobed.CustomPreset
)

Variables

View Source
var (
	DefaultSearchConfig       = gobed.DefaultSearchConfig
	AsyncSearchConfig         = gobed.AsyncSearchConfig
	GPUSearchConfig           = gobed.GPUSearchConfig
	AutoOptimizedSearchConfig = gobed.AutoOptimizedSearchConfig
	NewAutoSearchEngine       = gobed.NewAutoSearchEngine
	FastSearchEngine          = gobed.FastSearchEngine
)
View Source
var (
	NewObjectPool           = gobed.NewObjectPool
	NewBatchProcessor       = gobed.NewBatchProcessor
	NewMemoryOptimizedCache = gobed.NewMemoryOptimizedCache
)
View Source
var (
	GetSearchConfig           = gobed.GetSearchConfig
	NewSearchEngineWithPreset = gobed.NewSearchEngineWithPreset
)
View Source
var (
	CosineSimilarity        = gobed.CosineSimilarity
	CosineSimilarityFloat64 = gobed.CosineSimilarityFloat64
)

Functions

func IsCUDAAvailable

func IsCUDAAvailable() bool

IsCUDAAvailable defers to the core runtime detection from the gobed package.

Types

type BatchProcessor

type BatchProcessor = gobed.BatchProcessor

Type aliases to reuse optimized implementations from the root gobed package.

type Config

type Config struct {
	Path       string
	Query      string
	TopK       int
	UseGPU     bool
	Extensions []string
	MaxFiles   int
	BatchSize  int
}

Config represents search configuration

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default search configuration

type EmbedInt8Result

type EmbedInt8Result = gobed.EmbedInt8Result

Type aliases to reuse optimized implementations from the root gobed package.

type EmbeddingModel

type EmbeddingModel = gobed.EmbeddingModel

Type aliases to reuse optimized implementations from the root gobed package.

type IndexRequest

type IndexRequest = gobed.IndexRequest

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

type IndexResponse

type IndexResponse = gobed.IndexResponse

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

type IndexingStats

type IndexingStats = gobed.IndexingStats

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

type MemoryOptimizedCache

type MemoryOptimizedCache = gobed.MemoryOptimizedCache

Type aliases to reuse optimized implementations from the root gobed package.

type ObjectPool

type ObjectPool = gobed.ObjectPool

Type aliases to reuse optimized implementations from the root gobed package.

type PresetConfig

type PresetConfig = gobed.PresetConfig

type SearchConfig

type SearchConfig = gobed.SearchConfig

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

type SearchEngine

type SearchEngine = gobed.SearchEngine

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

func NewAsyncSearchEngine

func NewAsyncSearchEngine(model *EmbeddingModel) *SearchEngine

func NewCAGRASearchEngine

func NewCAGRASearchEngine(model *EmbeddingModel) *SearchEngine

func NewGPUSearchEngine

func NewGPUSearchEngine(model *EmbeddingModel) *SearchEngine

func NewSearchEngine

func NewSearchEngine(model *EmbeddingModel) *SearchEngine

func NewSearchEngineWithConfig

func NewSearchEngineWithConfig(model *EmbeddingModel, config SearchConfig) *SearchEngine

type SearchOptions

type SearchOptions = gobed.SearchOptions

Re-export the high level search engine API from the root gobed package so consumers depending on github.com/lee101/gobed/pkg/search get the same production-ready GPU-optimized implementation.

type SearchPreset

type SearchPreset = gobed.SearchPreset

type SearchResult

type SearchResult = gobed.SearchResult

Type aliases to reuse optimized implementations from the root gobed package.

type SimplifiedSearchConfig

type SimplifiedSearchConfig = gobed.SimplifiedSearchConfig

Jump to

Keyboard shortcuts

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