Documentation
¶
Index ¶
- Constants
- Variables
- func IsCUDAAvailable() bool
- type BatchProcessor
- type Config
- type EmbedInt8Result
- type EmbeddingModel
- type IndexRequest
- type IndexResponse
- type IndexingStats
- type MemoryOptimizedCache
- type ObjectPool
- type PresetConfig
- type SearchConfig
- type SearchEngine
- func NewAsyncSearchEngine(model *EmbeddingModel) *SearchEngine
- func NewCAGRASearchEngine(model *EmbeddingModel) *SearchEngine
- func NewGPUSearchEngine(model *EmbeddingModel) *SearchEngine
- func NewSearchEngine(model *EmbeddingModel) *SearchEngine
- func NewSearchEngineWithConfig(model *EmbeddingModel, config SearchConfig) *SearchEngine
- type SearchOptions
- type SearchPreset
- type SearchResult
- type SimplifiedSearchConfig
Constants ¶
const ( FastPreset = gobed.FastPreset BalancedPreset = gobed.BalancedPreset AccuratePreset = gobed.AccuratePreset CAGRAPreset = gobed.CAGRAPreset CustomPreset = gobed.CustomPreset )
Variables ¶
var ( DefaultSearchConfig = gobed.DefaultSearchConfig AsyncSearchConfig = gobed.AsyncSearchConfig GPUSearchConfig = gobed.GPUSearchConfig AutoOptimizedSearchConfig = gobed.AutoOptimizedSearchConfig NewAutoSearchEngine = gobed.NewAutoSearchEngine FastSearchEngine = gobed.FastSearchEngine )
var ( NewObjectPool = gobed.NewObjectPool NewBatchProcessor = gobed.NewBatchProcessor NewMemoryOptimizedCache = gobed.NewMemoryOptimizedCache )
var ( GetSearchConfig = gobed.GetSearchConfig NewSearchEngineWithPreset = gobed.NewSearchEngineWithPreset )
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
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