embed

package
v0.7.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbeddingInspirationWorkflow

func EmbeddingInspirationWorkflow(input string, inspirationFiles []string, k int, n int) types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

func FetchOrCachedEmbeddingForFilesTzapWorkflow

func FetchOrCachedEmbeddingForFilesTzapWorkflow() types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

func InspirationWorkflow

func InspirationWorkflow(inspirationFiles []string) types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

func PrepareEmbedFilesTzapWorkflow

func PrepareEmbedFilesTzapWorkflow(files []string) types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

func SaveAndLoadEmbeddingsToDB

func SaveAndLoadEmbeddingsToDB() types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

func SearchFilesWorkflow

func SearchFilesWorkflow(input string, excludeFiles []string, k int, n int) types.NamedWorkflow[*tzap.Tzap, *tzap.Tzap]

k is amount of embeddings to be included. When using inspiration files, embeddings are likely to be duplicated and as such are filtered out. n is used to increase how many embeddings are fetched but are trimmed to only contain top K after filtering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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