jose-compu / jose-compu/funes.cpp

[LogosDB] Bump version to v0.2.0 for delete/update operations

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
C++
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Summary
Update LogosDB from v0.1.0 to v0.2.0 to enable memory deletion and updates.

## Current State
- CMakeLists.txt pins LogosDB to `GIT_TAG v0.1.0`
- Missing delete/update functionality in semantic memory

## LogosDB v0.2.0 New Features
- `logosdb_delete(db, id, &err)` - Mark rows as deleted (excluded from search)
- `logosdb_update(db, id, embedding, dim, text, timestamp, &err)` - Replace existing rows
- `logosdb_count_live(db)` - Count non-deleted rows
- `logosdb_result_id(res, i)` - Get IDs from search results

## Required Changes
1. **CMakeLists.txt**: Bump `GIT_TAG` to `v0.2.0`
2. **cli.cpp**: Store returned IDs from `logosdb_put()` for future delete/update
3. **SPECS.md**: Update documented version and API

## New CLI Commands to Add
- `/forget ` or `/delete ` - Remove specific memories
- `/update ` - Replace a memory
- `/list` or `/count` - Show memory statistics (live vs total)

## Acceptance Criteria
- [ ] CMakeLists.txt updated to v0.2.0
- [ ] Code compiles and links with v0.2.0
- [ ] Store IDs when teaching new memories
- [ ] Add `/delete` command (by ID or by search)
- [ ] Add memory stats display
- [ ] Update SPECS.md

## Related Files
- `CMakeLists.txt` (lines 188-197)
- `tools/cli/cli.cpp` (embedding storage, search)
- `SPECS.md`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.