vikramvasudevan commited on
Commit
be9dacf
·
verified ·
1 Parent(s): c22c05a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tools.py +2 -1
tools.py CHANGED
@@ -36,6 +36,7 @@ tool_search_db = StructuredTool.from_function(
36
 
37
  tool_search_db_for_literal = StructuredTool.from_function(
38
  query_by_literal_text,
 
39
  description=(
40
  "Use this only if the user explicitly says they want a 'literal match' or exact phrase search OR if the `tool_semantic_vector_search` or the `tool_search_db_by_metadata` don't yield accurate results."
41
  " This is not the default."
@@ -75,7 +76,7 @@ tool_format_scripture_answer = StructuredTool.from_function(
75
  description=(
76
  """
77
  Use this tool to generate a custom system prompt based on the scripture title, question, and query_tool_output.
78
- This is especially useful when the user has asked a question about a scripture, and the relevant context has been fetched using the `query` tool.
79
  The generated prompt will guide the assistant to respond using only that scripture’s content, with a clear format including Sanskrit/Tamil verses, English explanations, and source chapters.
80
  Include a santized version of the original native text. Do ensure you dont lose any words from the native text when sanitizing.
81
  """
 
36
 
37
  tool_search_db_for_literal = StructuredTool.from_function(
38
  query_by_literal_text,
39
+ name="tool_search_db_by_literal_text",
40
  description=(
41
  "Use this only if the user explicitly says they want a 'literal match' or exact phrase search OR if the `tool_semantic_vector_search` or the `tool_search_db_by_metadata` don't yield accurate results."
42
  " This is not the default."
 
76
  description=(
77
  """
78
  Use this tool to generate a custom system prompt based on the scripture title, question, and query_tool_output.
79
+ This is especially useful when the user has asked a question about a scripture, and the relevant context has been fetched using the tools like `tool_search_db_by_metadata` or `tool_search_db_by_literal_text` or `tool_semantic_vector_search`.
80
  The generated prompt will guide the assistant to respond using only that scripture’s content, with a clear format including Sanskrit/Tamil verses, English explanations, and source chapters.
81
  Include a santized version of the original native text. Do ensure you dont lose any words from the native text when sanitizing.
82
  """