[search] Duplicate search implementation in services/search/ and src/search/ — near-identical files #771
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#771
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?
Problem
Two nearly-identical copies of the search module exist:
services/search/(8 files, ~2240 lines)src/search/(7 files, ~2183 lines)Only minor differences exist between them (e.g.,
content.pyhas 160 lines of diff,providers.pyhas 27 lines of diff for comment rewording).services/search/has an extraservice.pythatsrc/search/lacks.Cross-import inconsistency
Routes import from
services.search:routes/search_routes.py→from services.search import ...But
src/deep_research.pyimports fromsrc.search:from src.search.providers import _get_search_settingsfrom src.search.core import _call_provider, _build_provider_chainThis means two different copies of the same code are being used depending on call path.
AGENTS.md violations
services/search/orsrc/search/Fix
services/search/since routes use it)src/search/or make it a thin re-exportsrc/deep_research.pyimportsREADME.md