Documentation ¶
Index ¶
- func LoadProject(baseDir string, lib string) (project.Project, error)
- func NewEmbeddingsCache(projectDir project.ProjectDir) (types.DBCollectionInterface[string], error)
- func NewEmbeddingsCollection(projectDir project.ProjectDir) (types.DBCollectionInterface[types.Vector], error)
- func NewFilestampCache(projectDir project.ProjectDir) (types.DBCollectionInterface[int64], error)
- func NewLocalLibProject(baseDir string, name project.ProjectName) (project.Project, error)
- func NewLocalProject(baseDir string) (project.Project, error)
- func NewLocalZipProject(name, relativeDirInZip, url string) (project.Project, error)
- type LibProject
- func (l *LibProject) CanIndex() bool
- func (l *LibProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
- func (*LibProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
- func (*LibProject) GetFiles() ([]types.FileReader, error)
- func (l *LibProject) GetProjectName() project.ProjectName
- func (*LibProject) GetTimestampCache() types.DBCollectionInterface[int64]
- type LocalProject
- func (l *LocalProject) CanIndex() bool
- func (l *LocalProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
- func (l *LocalProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
- func (l *LocalProject) GetProjectName() project.ProjectName
- func (l *LocalProject) GetTimestampCache() types.DBCollectionInterface[int64]
- type ZipProject
- func (l *ZipProject) CanIndex() bool
- func (l *ZipProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
- func (l *ZipProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
- func (l *ZipProject) GetProjectName() project.ProjectName
- func (l *ZipProject) GetTimestampCache() types.DBCollectionInterface[int64]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmbeddingsCache ¶
func NewEmbeddingsCache(projectDir project.ProjectDir) (types.DBCollectionInterface[string], error)
func NewEmbeddingsCollection ¶
func NewEmbeddingsCollection(projectDir project.ProjectDir) (types.DBCollectionInterface[types.Vector], error)
func NewFilestampCache ¶
func NewFilestampCache(projectDir project.ProjectDir) (types.DBCollectionInterface[int64], error)
func NewLocalLibProject ¶
Types ¶
type LibProject ¶
type LibProject struct {
// contains filtered or unexported fields
}
func (*LibProject) CanIndex ¶
func (l *LibProject) CanIndex() bool
func (*LibProject) GetEmbeddingCollection ¶
func (l *LibProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
func (*LibProject) GetEmbeddingsCache ¶
func (*LibProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
GetEmbeddingsCache implements project.Project
func (*LibProject) GetFiles ¶
func (*LibProject) GetFiles() ([]types.FileReader, error)
GetFiles implements project.Project
func (*LibProject) GetProjectName ¶
func (l *LibProject) GetProjectName() project.ProjectName
GetProjectName implements project.Project
func (*LibProject) GetTimestampCache ¶
func (*LibProject) GetTimestampCache() types.DBCollectionInterface[int64]
GetTimestampCache implements project.Project
type LocalProject ¶
type LocalProject struct { *localwalker.LocalWalker //GetFiles() @TODO: Refactor to FS interface? // contains filtered or unexported fields }
func (*LocalProject) CanIndex ¶
func (l *LocalProject) CanIndex() bool
func (*LocalProject) GetEmbeddingCollection ¶
func (l *LocalProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
GetEmbedding implements project.Project
func (*LocalProject) GetEmbeddingsCache ¶
func (l *LocalProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
func (*LocalProject) GetProjectName ¶
func (l *LocalProject) GetProjectName() project.ProjectName
GetProjectName implements project.Project
func (*LocalProject) GetTimestampCache ¶
func (l *LocalProject) GetTimestampCache() types.DBCollectionInterface[int64]
type ZipProject ¶
type ZipProject struct { *zipwalker.ZipWalker //GetFiles() @TODO: Refactor to FS interface? // contains filtered or unexported fields }
func (*ZipProject) CanIndex ¶
func (l *ZipProject) CanIndex() bool
func (*ZipProject) GetEmbeddingCollection ¶
func (l *ZipProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]
GetEmbedding implements project.Project
func (*ZipProject) GetEmbeddingsCache ¶
func (l *ZipProject) GetEmbeddingsCache() types.DBCollectionInterface[string]
GetEmbeddingsCache implements project.Project
func (*ZipProject) GetProjectName ¶
func (l *ZipProject) GetProjectName() project.ProjectName
GetProjectName implements project.Project
func (*ZipProject) GetTimestampCache ¶
func (l *ZipProject) GetTimestampCache() types.DBCollectionInterface[int64]
GetTimestampCache implements project.Project
Click to show internal directories.
Click to hide internal directories.