Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
def
embed_by_openai(text: Union[List, str]):
13
return
get_openai_embed(TEXT_EMBEDDING_ADA_002, text)
14
15
16
def
embed_by_transformers(text: Union[List, str]):
Callers
2
gen_embed_and_save
Function · 0.90
embedding.py
File · 0.85
Calls
1
get_openai_embed
Function · 0.90
Tested by
no test coverage detected