Documentation
¶
Index ¶
- Constants
- func FormatMetadataTuple(key string, value string) string
- func IsValidTimestamp(v string) bool
- func ParseMetadataTuples(raw string) (map[string]string, bool)
- func ResolveKeepIndices(ctx context.Context, items []SemanticItem, resolver SemanticResolver) ([]int, error)
- func SplitMetadataAndContent(raw string) (string, string, bool)
- type LLMSemanticResolver
- type SemanticItem
- type SemanticResolver
Constants ¶
View Source
const TimestampLayout = "2006-01-02 15:04"
Variables ¶
This section is empty.
Functions ¶
func FormatMetadataTuple ¶
func IsValidTimestamp ¶
func ResolveKeepIndices ¶
func ResolveKeepIndices(ctx context.Context, items []SemanticItem, resolver SemanticResolver) ([]int, error)
Types ¶
type LLMSemanticResolver ¶
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 SemanticResolver ¶
type SemanticResolver interface {
SelectDedupKeepIndices(ctx context.Context, items []SemanticItem) ([]int, error)
}
Click to show internal directories.
Click to hide internal directories.