-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env-example
More file actions
48 lines (32 loc) · 1.7 KB
/
Copy path.env-example
File metadata and controls
48 lines (32 loc) · 1.7 KB
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
46
47
48
# Model source: "openai" for GPT models, "local" for Ollama
MODEL_SOURCE=openai # default to OpenAI
# Your OpenAI API key for accessing OpenAI services
OPENAI_API_KEY=your-openai-api-key-here
# The LLM model
LLM_MODEL=gpt-4o-mini
# The LLM max number of tokens
LLM_MAX_TOKENS=128000
# The embedding model
EMBEDDING_MODEL=text-embedding-3-small
# The dimension of the embeddings used by OpenAI
EMBEDDING_DIM=1536
# Max chunk size for embeddings
CHUNK_SIZE_MAX=512
# Max chunk overlap percentage
CHUNK_OVERLAP_PERCENTAGE=20
# The Tokenizer encoding used calculating the number of tokens
TOKEN_ENCODING=cl100k_base
# Path to the FAISS index file
FAISS_INDEX_PATH=../embeddings/faiss_index.bin
# Path to the metadata file associated with the FAISS index
METADATA_PATH=../embeddings/metadata.pkl
# Path to the docstore file for storing documents
DOCSTORE_PATH=../embeddings/docstore.pkl
# Path to the folder containing documents to be ingested
INGEST_PATH=../ingest
# The system prompt used by the chatbot to generate responses
SYSTEM_PROMPT=Please provide responses based only on the context document chunks provided if they are relevant to the user's prompt. If the context document chunks are not relevant, or if the information is not available, please let me know. Do not provide information beyond what is available in the context documents. Chunks are sorted by relevancy, where the first chunk listed is the most relevant. Note: Chunks may overlap and so may contain duplicate information.
# Threshold for document similarity; documents with a similarity score below this value will be ignored
SIMILARITY_THRESHOLD=0.1
# The number of top similar results to be considered for generating responses
TOP_SIMILARITY_RESULTS=2