project

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProjectInContext

func SetProjectInContext(ctx context.Context, project Project) context.Context

Types

type EmbedStore

type EmbedStore interface {
}

type LocalProject

type LocalProject struct {
	ProjectName ProjectName
	ProjectDir  ProjectDir
}

type Project

type Project interface {
	GetProjectName() ProjectName
	GetFiles() ([]types.FileReader, error)
	GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
	GetTimestampCache() types.DBCollectionInterface[int64]
	GetEmbeddingsCache() types.DBCollectionInterface[string]
	CanIndex() bool
}

func GetProjectFromContext

func GetProjectFromContext(ctx context.Context) Project

type ProjectDB

type ProjectDB map[ProjectName]ProjectDir

type ProjectDB2

type ProjectDB2 map[ProjectName]Project

type ProjectDir

type ProjectDir string

type ProjectName

type ProjectName string
const LOCALPROJECTNAME ProjectName = "@LOCAL"

Jump to

Keyboard shortcuts

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