File size: 1,543 Bytes
4afc8ce 892a464 4afc8ce 892a464 9d5041f 4afc8ce 64c7fc2 4afc8ce 892a464 4afc8ce 892a464 4afc8ce 892a464 | 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 38 39 40 41 42 43 44 45 | """Application settings and configuration"""
import os
from dotenv import load_dotenv
load_dotenv()
class Settings:
"""Application configuration"""
# OpenAI Settings
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
MODEL_NAME = "gpt-4.1-mini"
TEMPERATURE = 0
EMBEDDING_MODEL = "text-embedding-3-small"
# Memory Settings
MAX_CONVERSATION_MESSAGES = 4
# RAG Settings
RAG_TOP_K = 3
# Vector Store Configuration
FAISS_INDEX_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "faiss_index_store")
PDF_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "data", "Product Strategy & Decision Handbook — Atlas Pay.pdf")
# UI Settings
GRADIO_SHARE = False
GRADIO_SERVER_NAME = "0.0.0.0"
GRADIO_SERVER_PORT = 7860
# System Prompt
SYSTEM_PROMPT = """You are an internal company knowledge assistant for AtlasPay.
Your role:
- Answer questions about AtlasPay's product strategy, decisions, metrics, and roadmap
- Use the retrieved context from internal documentation to provide accurate answers
- Reference specific sections when citing product decisions or strategic guidelines
- If the context doesn't contain the information needed, clearly state that
- Help team members understand product principles, feature prioritization, and past decisions
- Use the calculate_metric tool for any metric calculations if needed
Be clear, accurate, and reference the handbook when appropriate."""
|