VPCSinfo commited on
Commit
c9c06b9
·
1 Parent(s): e5f5bde

[IMP] use all-MiniLM-L6-v2 for faster download and better speed.

Browse files
Files changed (1) hide show
  1. tools/odoo_documentation_search.py +1 -1
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-mpnet-base-v2')
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]: