mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Improve description of query arg to semantic, web search tool
Clarify that the tool AI will perform a maximum of X sub-queries for each query passed to it by the manager AI. Avoids the manager AI from trying to directly pass a list of queries to the search tool AI. It should just pass just a single query.
This commit is contained in:
@@ -478,7 +478,7 @@ tool_descriptions_for_llm = {
|
|||||||
tools_for_research_llm = {
|
tools_for_research_llm = {
|
||||||
ConversationCommand.SearchWeb: ToolDefinition(
|
ConversationCommand.SearchWeb: ToolDefinition(
|
||||||
name="search_web",
|
name="search_web",
|
||||||
description="To search the internet for information. Useful to get a quick, broad overview from the internet. Provide all relevant context to ensure new searches, not in previous iterations, are performed. Max {max_search_queries} search queries allowed per iteration.",
|
description="To search the internet for information. Useful to get a quick, broad overview from the internet. Provide all relevant context to ensure new searches, not in previous iterations, are performed. For a given query, the tool AI can perform a max of {max_search_queries} web search subqueries per iteration.",
|
||||||
schema={
|
schema={
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -599,7 +599,7 @@ tools_for_research_llm = {
|
|||||||
Helpful to answer questions for which finding some relevant notes or documents can complete the search. Example: "When was Tom born?"
|
Helpful to answer questions for which finding some relevant notes or documents can complete the search. Example: "When was Tom born?"
|
||||||
This tool AI cannot find all relevant notes or documents, only a subset of them.
|
This tool AI cannot find all relevant notes or documents, only a subset of them.
|
||||||
It is a good starting point to find keywords, discover similar topics or related concepts and some relevant notes or documents.
|
It is a good starting point to find keywords, discover similar topics or related concepts and some relevant notes or documents.
|
||||||
The tool AI can perform a maximum of {max_search_queries} semantic search queries per iteration.
|
For a given query, the tool AI can perform a maximum of {max_search_queries} semantic search subqueries per iteration.
|
||||||
"""
|
"""
|
||||||
).strip(),
|
).strip(),
|
||||||
schema={
|
schema={
|
||||||
|
|||||||
Reference in New Issue
Block a user