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: 0

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