Create notes.txt
Browse files
notes.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
When using the @tool decorator from langchain_core.tools, the function must either:
|
| 2 |
+
- Have a docstring that describes what the tool does, or
|
| 3 |
+
- Provide an explicit description parameter to the decorator.
|
| 4 |
+
|
| 5 |
+
@tool
|
| 6 |
+
def RAG(state):
|
| 7 |
+
"""Use this tool to execute RAG. If the question is related to Japan or Sports, this tool retrieves the results."""
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
@tool(description="Use this tool to execute RAG. Retrieves results related to Japan or Sports.")
|
| 11 |
+
def RAG(state):
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# Clear ChromaDB cache to fix tenant issue
|
| 17 |
+
chromadb.api.client.SharedSystemClient.clear_system_cache()
|