File size: 380 Bytes
0c9476c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
from dotenv import load_dotenv

load_dotenv()

HF_TOKEN = os.getenv('HF_TOKEN')
GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')
CHROMA_PATH = "chroma"
UPLOAD_FOLDER = "uploads"
DB_PATH = "files.db"
PROMPT_TEMPLATE = """
Answer the given query based only on the context given below.
context:
{context}

---
based on the context above answer the following query:
{query}
"""