Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
tools.py
CHANGED
|
@@ -26,10 +26,11 @@ tool_search_db = StructuredTool.from_function(
|
|
| 26 |
query,
|
| 27 |
name="tool_semantic_vector_search",
|
| 28 |
description=(
|
| 29 |
-
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
|
|
|
|
| 33 |
),
|
| 34 |
)
|
| 35 |
|
|
|
|
| 26 |
query,
|
| 27 |
name="tool_semantic_vector_search",
|
| 28 |
description=(
|
| 29 |
+
"🚫 Never use this tool if the user asks for a verse number, pasuram number, or any explicit metadata field "
|
| 30 |
+
"(like azhwar name, prabandham, divya desam, decade, or chapter). "
|
| 31 |
+
"✅ Only use this tool when the query is vague or thematic, e.g. "
|
| 32 |
+
"'Which pasurams talk about Krishna's childhood?' or 'Show me verses about compassion'. "
|
| 33 |
+
f"The collection_name must be one of: {', '.join(allowed_collections)}."
|
| 34 |
),
|
| 35 |
)
|
| 36 |
|