rag

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVectorStore

func CreateVectorStore(ctx context.Context, config config.Config, ollamaClient *api.Client, ollamaRawUrl, embeddingsModel string) error

Types

type RagConfig

type RagConfig struct {
	ChunkSize           int     `json:"chunkSize"`
	ChunkOverlap        int     `json:"chunkOverlap"`
	SimilarityThreshold float64 `json:"similarityThreshold"`
	MaxSimilarity       int     `json:"maxSimilarity"`
}

func LoadRagConfig

func LoadRagConfig(path string) (RagConfig, error)

Jump to

Keyboard shortcuts

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