Skip to content

Commit a8685a9

Browse files
committed
feat(#156): mcw col
1 parent cdd23c2 commit a8685a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sr-data/src/sr_data/steps/embed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main(repos, prefix, hf, cohere):
4444
:param cohere Cohere token
4545
"""
4646
frame = pd.read_csv(repos)
47-
frame["top"] = frame["top"].apply(
47+
frame["mcw"] = frame["mcw"].apply(
4848
lambda words:
4949
words.replace("[", "").replace("]", "").replace("'", "")
5050
)
@@ -69,7 +69,7 @@ def embed_cohere(key, texts, prefix):
6969
embeddings = pd.DataFrame(
7070
np.asarray(
7171
client.embed(
72-
texts=texts["top"].tolist(), input_type="search_document", model="embed-english-v3.0"
72+
texts=texts["mcw"].tolist(), input_type="search_document", model="embed-english-v3.0"
7373
).embeddings
7474
)
7575
)

0 commit comments

Comments
 (0)