Move document search tool into helpers module with other tools

Document search (because of its age) was the only tool directly within
an api router. Put it into helpers to have all the (mini) tools in one
place.
This commit is contained in:
Debanjum
2025-06-05 00:12:42 -07:00
parent 1dbe60a8a2
commit 7d59688729
5 changed files with 297 additions and 303 deletions

View File

@@ -6,7 +6,7 @@ from asgiref.sync import sync_to_async
from khoj.database.adapters import AgentAdapters
from khoj.database.models import Agent, ChatModel, Entry, KhojUser
from khoj.routers.api import execute_search
from khoj.routers.helpers import execute_search
from khoj.utils.helpers import get_absolute_path
from tests.helpers import ChatModelFactory