Add is_initialized flag
Browse files
tools.py
CHANGED
|
@@ -93,6 +93,7 @@ class CrashInfoRetrieverTool(Tool):
|
|
| 93 |
output_type = "string"
|
| 94 |
|
| 95 |
def __init__(self, docs):
|
|
|
|
| 96 |
self.retriever = BM25Retriever.from_documents(docs)
|
| 97 |
|
| 98 |
def forward(self, query: str):
|
|
|
|
| 93 |
output_type = "string"
|
| 94 |
|
| 95 |
def __init__(self, docs):
|
| 96 |
+
self.is_initialized = False
|
| 97 |
self.retriever = BM25Retriever.from_documents(docs)
|
| 98 |
|
| 99 |
def forward(self, query: str):
|