vikramvasudevan commited on
Commit
7a0af3d
·
verified ·
1 Parent(s): 845dddf

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tools.py +4 -2
tools.py CHANGED
@@ -17,9 +17,11 @@ allowed_collections = [s["collection_name"] for s in SanatanConfig.scriptures]
17
  tool_search_db = StructuredTool.from_function(
18
  query,
19
  description=(
20
- "Search within a specific scripture collection. "
21
  f"The collection_name must be one of: {', '.join(allowed_collections)}."
22
- " Use this to find relevant scripture verses or explanations."
 
 
23
  ),
24
  )
25
 
 
17
  tool_search_db = StructuredTool.from_function(
18
  query,
19
  description=(
20
+ "Do a vector Search within a specific scripture collection. "
21
  f"The collection_name must be one of: {', '.join(allowed_collections)}."
22
+ "Use this to find relevant scripture verses or explanations based on the given query."
23
+ "If the query doesn't yield any relevant results, then call `tool_search_db_by_metadata` tool to search specifically by a given metadata field (only if specific field from metadata has been mentioned)."
24
+ f"use this configuration for reference :\n{json.dumps(SanatanConfig.scriptures, indent=1)}\n"
25
  ),
26
  )
27