INNER CODE UNIT · Python
preloop
neuml/codequestion · src/python/codequestion/console.py:42
def preloop(self):
"""
Loads initial configuration.
"""
# Load query and embeddings
self.search = Search()
self.embeddings = self.search.embeddings
# Load graph-based actions, if necessary
if self.embeddings.graph:
if self.embeddings.graph.topics:
self.topics = Topics(self.embeddings)
self.path = Path(self.embeddings)
def default(self, line):
"""