rezashamji commited on
Commit
95f33fe
·
verified ·
1 Parent(s): 8edc55b
Files changed (1) hide show
  1. toy_search_tool.json +18 -0
toy_search_tool.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "toy_search",
4
+ "description": "Search a local embedding collection by keyword, meaning, or hybrid similarity.",
5
+ "type": "EmbeddingCollectionSearchTool",
6
+ "fields": { "collection": "toy" },
7
+ "parameter": {
8
+ "type": "object",
9
+ "properties": {
10
+ "query": { "type": "string", "description": "Search text" },
11
+ "method": { "type": "string", "default": "hybrid", "enum": ["keyword", "embedding", "hybrid"] },
12
+ "top_k": { "type": "integer", "default": 5 },
13
+ "alpha": { "type": "number", "default": 0.5, "description": "Hybrid mix (0..1)" }
14
+ },
15
+ "required": ["query"]
16
+ }
17
+ }
18
+ ]