extract

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

Extractor handles automatic extraction of memories from text

func NewExtractor

func NewExtractor(evidenceService *evidence.Service) *Extractor

NewExtractor creates a new memory extractor

func (*Extractor) ExtractAndQueueForVerification

func (e *Extractor) ExtractAndQueueForVerification(responseText string, memoryService *memory.Service, evidenceService *evidence.Service, projectID string) error

ExtractAndQueueForVerification extracts memories and queues fact candidates for verification

func (*Extractor) ExtractAndStoreFromStreamingResponse

func (e *Extractor) ExtractAndStoreFromStreamingResponse(responseText string, memoryService *memory.Service, projectID string) error

ExtractAndStoreFromStreamingResponse processes a streaming response and extracts memories

func (*Extractor) ExtractMemories

func (e *Extractor) ExtractMemories(text string, projectID string) ([]*memory.Memory, error)

ExtractMemories extracts potential memories from text

func (*Extractor) GetCoVeStats

func (e *Extractor) GetCoVeStats() *cove.Stats

GetCoVeStats returns CoVe statistics if available

func (*Extractor) SetCoVeVerifier

func (e *Extractor) SetCoVeVerifier(verifier *cove.Verifier)

SetCoVeVerifier sets the CoVe verifier for candidate filtering

func (*Extractor) ValidateAndStoreMemories

func (e *Extractor) ValidateAndStoreMemories(memories []*memory.Memory, memoryService *memory.Service) error

ValidateAndStoreMemories validates and stores extracted memories

type WantsFactMetadata

type WantsFactMetadata struct {
	WantsFact bool   `json:"wants_fact"`
	Original  string `json:"original_text"`
}

WantsFactMetadata is metadata indicating a memory wants to be promoted to fact

Jump to

Keyboard shortcuts

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