metadata

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package metadata provides agent metadata structs and info.

Index

Constants

View Source
const (
	AgentMetadataFileName = "metadata.json"
)

Variables

This section is empty.

Functions

func Store

func Store(path string, meta *Metadata) (err error)

Types

type Faiss added in v1.7.11

type Faiss struct {
	IndexCount uint64 `json:"index_count" yaml:"index_count"`
}

type Metadata

type Metadata struct {
	IsInvalid bool   `json:"is_invalid"      yaml:"is_invalid"`
	NGT       *NGT   `json:"ngt,omitempty"   yaml:"ngt"`
	Faiss     *Faiss `json:"faiss,omitempty" yaml:"faiss"`
}

func Load

func Load(path string) (meta *Metadata, err error)

type NGT

type NGT struct {
	IndexCount uint64 `json:"index_count" yaml:"index_count"`
}

Jump to

Keyboard shortcuts

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