notes

package
v0.0.0-...-dd3cbee Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteNote

func DeleteNote(c *gin.Context)

func GetNote

func GetNote(c *gin.Context)

func GetNoteChildren

func GetNoteChildren(c *gin.Context)

GetNoteChildren returns immediate children of a given note

func ListNotes

func ListNotes(c *gin.Context)

func UpsertNote

func UpsertNote(c *gin.Context)

Types

type Note

type Note struct {
	ID           uuid.UUID       `json:"id"`
	Title        string          `json:"title"`
	Body         string          `json:"body"`
	Embedding    pgvector.Vector `json:"-"`
	UserId       uuid.UUID       `json:"user_id"`
	Parent       *uuid.UUID      `json:"parent"`
	CreatedAt    time.Time       `json:"created_at"`
	UpdatedAt    time.Time       `json:"updated_at"`
	Distance     float64         `json:"distance"`
	IsShared     bool            `json:"is_shared"`
	Tags         []NoteTag       `json:"tags,omitempty"`
	HasChildren  bool            `json:"has_children"`
	HasEmbedding bool            `json:"has_embedding"`
}

func RagSearch

func RagSearch(text string, userID string, distance float64, parentFilter *string, page int, limit int, c *gin.Context) ([]Note, int, error)

type NoteTag

type NoteTag struct {
	ID   string   `json:"id"`
	Path []string `json:"path"`
}

type PaginationInfo

type PaginationInfo struct {
	Page    int  `json:"page"`
	Limit   int  `json:"limit"`
	Total   int  `json:"total"`
	HasMore bool `json:"has_more"`
}

Jump to

Keyboard shortcuts

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