rag

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 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 KnowledgeEntity

type KnowledgeEntity struct {
	ID        int64   `json:"id"`
	LibraryID int64   `json:"lib_id,omitempty"`
	Question  string  `json:"question"`
	Answer    string  `json:"answer"`
	Score     float64 `json:"score"`
}

KnowledgeEntity TODO

type Options

type Options struct {
	LibraryID      int64   `json:"id"`
	Kind           string  `json:"kind"`
	IndexID        int32   `json:"index_id"`
	TopK           int32   `json:"top_k"`
	ScoreThreshold float64 `json:"score_threshold"`
}

Options ...

type ScalarDB

type ScalarDB interface {
	Fetch(context.Context, string, *Options) (*KnowledgeEntity, error)
}

ScalarDB ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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