Initial project setup

This commit is contained in:
Ayomide
2025-07-07 22:08:02 +01:00
parent c158262a49
commit b76a3e75f3
11 changed files with 208 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import cohere
from backend.config import Config
co = cohere.Client(Config.COHERE_API_KEY)
def get_embeddings(texts):
response = co.embed(texts=texts, model="embed-english-v3.0")
return response.embeddings