Initial project setup
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user