File size: 1,191 Bytes
50c110f
 
 
19c4491
50c110f
19c4491
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8079714
50c110f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from decouple import config
import os

deploy = True

if deploy:
    OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
    SERP_API_KEY = os.environ.get("SERP_API_KEY")
    SUPABASE_URL = os.environ.get("SUPABASE_URL")
    SUPABASE_KEY = os.environ.get("SUPABASE_KEY")
    COPY_LEAKS_EMAIL_ADDRESS = os.environ.get("COPY_LEAKS_EMAIL_ADDRESS")
    COPY_LEAKS_EMAIL_KEY = os.environ.get("COPY_LEAKS_EMAIL_KEY")
    WEBHOOK_SECRET = "*asd9s"
else:
    OPENAI_API_KEY = config('OPENAI_API_KEY', default="")
    SERP_API_KEY = config('SERP_API_KEY', default="")
    SUPABASE_URL = config('SUPABASE_URL', default="")
    SUPABASE_KEY = config('SUPABASE_KEY', default="")
    COPY_LEAKS_EMAIL_ADDRESS = config('COPY_LEAKS_EMAIL_ADDRESS', default="")
    COPY_LEAKS_EMAIL_KEY = config('COPY_LEAKS_EMAIL_KEY', default="")
    WEBHOOK_SECRET = config('WEBHOOK_SECRET', default="*asd9s")

dense_models = {
    'text-embedding-ada-002': {
        'source': 'openai',
        'dimension': 1536,
        'api_key': True,
        'metric': 'dotproduct'
    },
    'multilingual-22-12': {
        'source': 'cohere',
        'dimension': 768,
        'api_key': True,
        'metric': 'dotproduct'
    }
}