|
| 1 | +########################################################## |
| 2 | + |
| 3 | +# Edit values for your site. |
| 4 | +# your app secret key |
| 5 | +SECRET_KEY='ADD-YOUR-CUSTOM-KEY-HERE' |
| 6 | +# For openai |
| 7 | +OPENAI_API_KEY=YOURKEY |
| 8 | +# add IP what you allow like superadmin |
| 9 | +ALLOWED_HOSTS=localhost,0.0.0.0 |
| 10 | +# Use * only in dev environment |
| 11 | +#ALLOWED_HOSTS=* |
| 12 | +# Your SITE URL |
| 13 | +APP_URL='https://YOUR-URL-HERE' |
| 14 | + |
| 15 | +########################################################## |
| 16 | + |
| 17 | +# "azure" | "openai" | llama2 |
| 18 | +OPENAI_API_TYPE=openai |
| 19 | +OPENAI_API_MODEL=gpt-4-1106-preview |
| 20 | +OPENAI_API_TEMPERATURE=1 |
| 21 | + |
| 22 | +# If using azure |
| 23 | +# AZURE_OPENAI_API_BASE= |
| 24 | +# AZURE_OPENAI_API_KEY= |
| 25 | +# AZURE_OPENAI_API_VERSION=2023-03-15-preview |
| 26 | +# AZURE_OPENAI_EMBEDDING_MODEL_NAME= |
| 27 | +# AZURE_OPENAI_DEPLOYMENT_NAME= |
| 28 | +# AZURE_OPENAI_COMPLETION_MODEL=gpt-35-turbo |
| 29 | + |
| 30 | +# "azure" | "openai" | llama2 |
| 31 | +EMBEDDING_PROVIDER=openai |
| 32 | + |
| 33 | +# Vector Store, PINECONE|QDRANT |
| 34 | +STORE=QDRANT |
| 35 | + |
| 36 | + |
| 37 | +# if using pinecone |
| 38 | +# PINECONE_API_KEY= |
| 39 | +# PINECONE_ENV= |
| 40 | +# VECTOR_STORE_INDEX_NAME= |
| 41 | + |
| 42 | + |
| 43 | +# if using qdrant |
| 44 | +QDRANT_URL=http://qdrant:6333 |
| 45 | + |
| 46 | + |
| 47 | +# optional, defaults to 15 |
| 48 | +MAX_PAGES_CRAWL=150 |
| 49 | + |
| 50 | +# --- these will change if you decide to start testing the software |
| 51 | +CELERY_BROKER_URL=redis://redis:6379/ |
| 52 | +CELERY_RESULT_BACKEND=redis://redis:6379/ |
| 53 | +DATABASE_NAME=openchat |
| 54 | +DATABASE_USER=dbuser |
| 55 | +DATABASE_PASSWORD=dbpass |
| 56 | +DATABASE_HOST=mysql |
| 57 | +DATABASE_PORT=3306 |
| 58 | + |
| 59 | +# use 'external' if you want to use below services. |
| 60 | +PDF_LIBRARY = 'external' |
| 61 | + |
| 62 | +#PDF API - OCRWebService.com (REST API). https://www.ocrwebservice.com/api/restguide |
| 63 | +#Extract text from scanned images and PDF documents and convert into editable formats. |
| 64 | +#Please create new account with ocrwebservice.com via http://www.ocrwebservice.com/account/signup and get license code |
| 65 | +OCR_LICCODE = 'LICENSE-CODE' |
| 66 | +OCR_USERNAME = 'USERNAME' |
| 67 | +OCR_LANGUAGE = 'english' |
| 68 | +# Advantage to clean up the OCR text which can be messy and full with garbage, but will generate a cost with LLM if is paid. Use carefully. |
| 69 | +# Use 1 to enable, 0 to disable. |
| 70 | +OCR_LLM = '1' |
| 71 | + |
| 72 | +# retrieval_qa | conversation_retrieval, retrieval_qa works better with azure openai |
| 73 | +# if you want to use the conversation_retrieval | retrieval_qa chain |
| 74 | +CHAIN_TYPE=conversation_retrieval |
| 75 | + |
0 commit comments