Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
ID int64
FilePath string
LineNumber int
CodeSnippet string
Embedding []float32
PatternType string
Entropy float64
Confidence string
Verified bool
Timestamp int64
}
Finding represents a secret finding with its embedding
type VectorStore ¶
type VectorStore struct {
// contains filtered or unexported fields
}
VectorStore handles storage and retrieval of embeddings
func NewVectorStore ¶
func NewVectorStore(dbPath string, enabled bool, ephemeral bool) (*VectorStore, error)
NewVectorStore creates a new vector store
func (*VectorStore) Close ¶
func (vs *VectorStore) Close() error
Close closes the database connection
func (*VectorStore) MarkVerified ¶
func (vs *VectorStore) MarkVerified(id int64, verified bool) error
MarkVerified marks a finding as verified
func (*VectorStore) Store ¶
func (vs *VectorStore) Store(finding *Finding) error
Store saves a finding with its embedding
Click to show internal directories.
Click to hide internal directories.