DrishtiSharma's picture
Create notes.txt
dfe7463 verified
raw
history blame
567 Bytes
When using the @tool decorator from langchain_core.tools, the function must either:
- Have a docstring that describes what the tool does, or
- Provide an explicit description parameter to the decorator.
@tool
def RAG(state):
"""Use this tool to execute RAG. If the question is related to Japan or Sports, this tool retrieves the results."""
@tool(description="Use this tool to execute RAG. Retrieves results related to Japan or Sports.")
def RAG(state):
# Clear ChromaDB cache to fix tenant issue
chromadb.api.client.SharedSystemClient.clear_system_cache()