core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	ID       string
	Content  string
	Metadata Metadata
}

Chunk represents a piece of text content with metadata

type Metadata

type Metadata struct {
	Source    string
	Page      int
	Position  int
	Type      string
	CreatedAt time.Time
}

Metadata contains additional information about a chunk

type Result

type Result struct {
	Chunk
	Score float32
}

Result represents a search result with relevance score

type SearchOptions

type SearchOptions struct {
	TopK     int
	Filter   map[string]interface{}
	MinScore float32
}

SearchOptions configures search behavior

type Source

type Source struct {
	Type    string
	Path    string
	Content string
	Reader  interface{}
}

Source represents a document source

Jump to

Keyboard shortcuts

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