[IMP] use all-MiniLM-L6-v2 for faster download and better speed.
Browse files
tools/odoo_documentation_search.py
CHANGED
@@ -17,7 +17,7 @@ class OdooDocumentationSearchTool(Tool):
|
|
17 |
|
18 |
def __init__(self, query=None):
|
19 |
# Load the SentenceTransformer model
|
20 |
-
self.model = SentenceTransformer('all-
|
21 |
self.is_initialized = True
|
22 |
|
23 |
def forward(self, query: str, version: str) -> List[Dict]:
|
|
|
17 |
|
18 |
def __init__(self, query=None):
|
19 |
# Load the SentenceTransformer model
|
20 |
+
self.model = SentenceTransformer('all-MiniLM-L6-v2')
|
21 |
self.is_initialized = True
|
22 |
|
23 |
def forward(self, query: str, version: str) -> List[Dict]:
|