notes

package
v0.0.0-...-fb6799e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 11 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 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:"embedding"`
	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"`
}

func RagSearch

func RagSearch(text string, userID string, distance float64, c *gin.Context) []Note

type NoteTag

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

Jump to

Keyboard shortcuts

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