From fecb211130ec487c7c617d28419c6d0097f19783 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Sat, 17 May 2025 23:30:07 -0400 Subject: feat: wikipedia module --- config/wiki/wiki-search.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config/wiki/wiki-search.json (limited to 'config/wiki/wiki-search.json') diff --git a/config/wiki/wiki-search.json b/config/wiki/wiki-search.json new file mode 100644 index 0000000..7ebfff6 --- /dev/null +++ b/config/wiki/wiki-search.json @@ -0,0 +1,30 @@ +{ + "url": "http://127.0.0.1:11434/api/chat", + "model": "llama3.2", + "system_prompt": "You are a research assistant. Use the search_engine tool to generate four distinct search queries that will help gather a broad range of information related to the user's query. Each query should focus on a different aspect or angle of the topic.", + "tools": [ + { + "type": "function", + "function": { + "name": "search_engine", + "description": "A Wikipedia search engine. Generate four distinct search queries to maximize the spread of search results.", + "parameters": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "items": { + "type": "string", + "description": "A distinct search query focusing on a specific aspect of the topic." + }, + "minItems": 4, + "maxItems": 4, + "description": "Four distinct search queries to maximize the spread of search results." + } + }, + "required": ["queries"] + } + } + } + ] +} -- cgit v1.2.3