MCPcopy Create free account
hub / github.com/SmartFlowAI/EmoLLM / load_embedding

Function load_embedding

careyou/rag/src/util/encode.py:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10加载向量模型
11"""
12def load_embedding() -> SentenceTransformer:
13 logger.info('Loading embedding...')
14 emb = SentenceTransformer(embedding_path)
15 logger.info('Embedding loaded.')
16 return emb
17
18
19"""

Callers 2

encode_raw_corpusFunction · 0.70
encode_qaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected