indexing

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Source   string
	FileName string
	Size     int64
	ModTime  interface{}
}

Metadata 文件元数据

type State

type State struct {
	Ctx         context.Context
	FilePath    string
	Documents   <-chan *entity.Document
	Chunks      <-chan *entity.Chunk
	Vectors     []*entity.Vector
	Metadata    Metadata
	TotalChunks int
}

State 索引管线的状态类型(用于 gochat/pkg/pipeline 的泛型参数)

func DefaultState

func DefaultState(ctx context.Context, filePath string) *State

DefaultState 创建默认的索引管线状态

Jump to

Keyboard shortcuts

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