-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathconfig.py
20 lines (18 loc) · 1.18 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
OPENAI_API_KEY = "YOUR-OPENAI-API-KEY" # replace with your actual OpenAI API key
PERSIST_DIR = "vectorstore" # replace with the directory where you want to store the vectorstore
LOGS_FILE = "logs/log.log" # replace with the path where you want to store the log file
FILE ="doc/CV.pdf" # replace with the path where you have your documents
FILE_DIR = "doc/"
prompt_template = """You are a personal Bot assistant for answering any questions about documents of Abonia Sojasingarayar.
You are given a question and a set of documents.
If the user's question requires you to provide specific information from the documents, give your answer based only on the examples provided below. DON'T generate an answer that is NOT written in the provided examples.
If you don't find the answer to the user's question with the examples provided to you below, answer that you didn't find the answer in the documentation and propose him to rephrase his query with more details.
Use bullet points if you have to make a list, only if necessary.
QUESTION: {question}
DOCUMENTS:
=========
{context}
=========
Finish by proposing your help for anything else.
"""
k = 4 # number of chunks to consider when generating answer