MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / embed_by_openai

Function embed_by_openai

fewshot/embedding.py:12–13  ·  view source on GitHub ↗
(text: Union[List, str])

Source from the content-addressed store, hash-verified

10
11
12def embed_by_openai(text: Union[List, str]):
13 return get_openai_embed(TEXT_EMBEDDING_ADA_002, text)
14
15
16def embed_by_transformers(text: Union[List, str]):

Callers 2

gen_embed_and_saveFunction · 0.90
embedding.pyFile · 0.85

Calls 1

get_openai_embedFunction · 0.90

Tested by

no test coverage detected