mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-06-08 23:39:40 +00:00
74ae8ed4c1
- [x] Add AST-aware code chunking for Go, Python, and TypeScript using tree-sitter - [x] Implement LEANN-inspired hybrid vector storage with hub detection and selective embedding storage (60-80% savings) - [x] Add observation relationship graph with CSR format and edge detection (file overlap, semantic similarity, temporal, concept) - [x] Implement graph-aware search with two-level traversal and relationship-based ranking - [x] Add auto-tuning system for dynamic hub threshold adjustment based on query performance - [x] Add comprehensive metrics tracking for vector storage, queries, latency, and graph traversals - [x] Update configuration system with graph and hybrid storage settings - [x] Add graph stats and vector metrics endpoints to worker service - [x] Enhance UI sidebar with advanced metrics display and graph visualization - [x] Optimize struct field alignment throughout codebase for memory efficiency - [x] Update documentation with LEANN Phase 2 features and performance benefits - [x] Add tree-sitter dependency for AST parsing
21 lines
894 B
Go
21 lines
894 B
Go
// Package models contains domain models for claude-mnemonic.
|
|
package models
|
|
|
|
// UserPrompt represents a user prompt captured during a session.
|
|
type UserPrompt struct {
|
|
ClaudeSessionID string `db:"claude_session_id" json:"claude_session_id"`
|
|
PromptText string `db:"prompt_text" json:"prompt_text"`
|
|
CreatedAt string `db:"created_at" json:"created_at"`
|
|
ID int64 `db:"id" json:"id"`
|
|
PromptNumber int `db:"prompt_number" json:"prompt_number"`
|
|
MatchedObservations int `db:"matched_observations" json:"matched_observations"`
|
|
CreatedAtEpoch int64 `db:"created_at_epoch" json:"created_at_epoch"`
|
|
}
|
|
|
|
// UserPromptWithSession includes session context for search results.
|
|
type UserPromptWithSession struct {
|
|
Project string `db:"project" json:"project"`
|
|
SDKSessionID string `db:"sdk_session_id" json:"sdk_session_id"`
|
|
UserPrompt
|
|
}
|