config.py 465 B

12345678910111213
  1. import os
  2. from dotenv import load_dotenv
  3. current_dir = os.path.dirname(os.path.abspath(__file__))
  4. parent_dir = os.path.dirname(current_dir)
  5. env_path = os.path.join(parent_dir, 'environment.env')
  6. load_dotenv(env_path)
  7. EMBEDDINGS_FILE = 'qa_embeddings.pkl'
  8. FAISS_INDEX_FILE = 'qa_faiss_index.bin'
  9. CSV_FILE = 'log_record_rows.csv'
  10. system_prompt = "你是台北101大樓的AI助理,你樂於以台灣人的立場幫助使用者,會用繁體中文回答問題。"