[memory/RAG] Dead code: src/memory.py is a near-duplicate of services/memory/memory.py #746
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#746
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Legacy duplication:
src/memory.py(365 lines) andservices/memory/memory.py(359 lines) are nearly identical files containing the sameMemoryManagerclass,tokenize(), andget_text_similarity().Key differences:
src/memory.pyhasincrement_uses()andusesfield in_validate_entries/add_entry— these are present in the activeservices/memory/memory.pycopy tooservices/memory/memory.pyis imported byservices/memory/__init__.pyand is the active modulesrc/memory.pyappears to be the pre-refactor original that was copied intoservices/Action: Verify
src/memory.pyhas no active importers, then delete it. The same applies tosrc/memory_vector.pywhich is identical toservices/memory/memory_vector.py(both 175 lines, sameMemoryVectorStoreclass).