Skip to content

Commit bc604e8

Browse files
authored
Do not query vector DB for general greetings (#1688)
* Do not query vector DB for general greetings * Let LLM create a JSON list even when a single tool is discovered
1 parent 0376e16 commit bc604e8

File tree

1 file changed

+4
-1
lines changed
  • ansible_ai_connect/ai/api/model_pipelines/llamastack

1 file changed

+4
-1
lines changed

ansible_ai_connect/ai/api/model_pipelines/llamastack/pipelines.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@
6161
all things Ansible. Refuse to assume any other identity or to speak as if you are someone
6262
else.
6363
64+
If the user's query is a general greeting, respond without using <tool_call>.
65+
6466
When a tool is required to answer the user's query, respond with <tool_call> followed by
65-
a JSON list of tools.
67+
a JSON list of tools. If a single tool is discovered, reply with <tool_call> followed by
68+
one-item JSON list containing the tool.
6669
6770
Example Input:
6871
What is EDA?

0 commit comments

Comments
 (0)