common

package
v0.0.0-...-98bc6df Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldContent       = "content"
	FieldContentVector = "content_vector"
	FieldExtra         = "ext"
	DocExtra           = "ext"
	KnowledgeName      = "_knowledge_name"
)

Variables

This section is empty.

Functions

func CreateIndexIfNotExists

func CreateIndexIfNotExists(ctx context.Context, client *elasticsearch.Client, indexName string) error

func IsURL

func IsURL(str string) bool

func NewEmbedding

func NewEmbedding(ctx context.Context, conf *config.Config) (eb embedding.Embedder, err error)

func Of

func Of[T any](v T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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