MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / __init__

Method __init__

toolbench/inference/LLM/retriever.py:10–15  ·  view source on GitHub ↗
(self, corpus_tsv_path = "", model_path="")

Source from the content-addressed store, hash-verified

8
9class ToolRetriever:
10 def __init__(self, corpus_tsv_path = "", model_path=""):
11 self.corpus_tsv_path = corpus_tsv_path
12 self.model_path = model_path
13 self.corpus, self.corpus2tool = self.build_retrieval_corpus()
14 self.embedder = self.build_retrieval_embedder()
15 self.corpus_embeddings = self.build_corpus_embeddings()
16
17 def build_retrieval_corpus(self):
18 print("Building corpus...")

Callers

nothing calls this directly

Calls 3

Tested by

no test coverage detected