entryutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TimestampLayout = "2006-01-02 15:04"

Variables

This section is empty.

Functions

func FormatMetadataTuple

func FormatMetadataTuple(key string, value string) string

func IsValidTimestamp

func IsValidTimestamp(v string) bool

func ParseMetadataTuples

func ParseMetadataTuples(raw string) (map[string]string, bool)

func ResolveKeepIndices

func ResolveKeepIndices(ctx context.Context, items []SemanticItem, resolver SemanticResolver) ([]int, error)

func SplitMetadataAndContent

func SplitMetadataAndContent(raw string) (string, string, bool)

Types

type LLMSemanticResolver

type LLMSemanticResolver struct {
	Client llm.Client
	Model  string
}

func NewLLMSemanticResolver

func NewLLMSemanticResolver(client llm.Client, model string) *LLMSemanticResolver

func (*LLMSemanticResolver) SelectDedupKeepIndices

func (r *LLMSemanticResolver) SelectDedupKeepIndices(ctx context.Context, items []SemanticItem) ([]int, error)

type SemanticItem

type SemanticItem struct {
	CreatedAt string
	Content   string
}

type SemanticResolver

type SemanticResolver interface {
	SelectDedupKeepIndices(ctx context.Context, items []SemanticItem) ([]int, error)
}

Jump to

Keyboard shortcuts

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