Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files
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 |
-
"
|
|
|
|
|
|
|
| 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 |
|