MCPcopy Create free account
hub / github.com/astercloud/aster / EmbedText

Method EmbedText

pkg/vector/embedder.go:8–8  ·  view source on GitHub ↗
(ctx context.Context, texts []string)

Source from the content-addressed store, hash-verified

6// 具体实现可以基于 OpenAI、Anthropic、本地模型或外部 HTTP 服务。
7type Embedder interface {
8 EmbedText(ctx context.Context, texts []string) ([][]float32, error)
9}

Callers 7

indexInternalMethod · 0.65
SearchMethod · 0.65
generateEmbeddingMethod · 0.65
IngestMethod · 0.65
SearchMethod · 0.65
UpsertTextMethod · 0.65
SearchMethod · 0.65

Implementers 2

MockEmbedderpkg/vector/mock_embedder.go
OpenAIEmbedderpkg/vector/openai_embedder.go

Calls

no outgoing calls

Tested by

no test coverage detected