This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from lvalics/main
Create example.env
- Loading branch information
Showing
10 changed files
with
133 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
2.14.2024 | ||
- Added example.env to streamline environment setup. | ||
- Implemented translation fixes to enhance application localization. | ||
- Updated docker-compose.yaml to prefix each container with oc_ for better namespace management. | ||
- Performed fixes in requirements.txt for improved dependency resolution. | ||
- Ensured existence of Vector Database (QDrant) prior to web crawling operations to address issues encountered with large websites, ensuring Vector Database creation and availability. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
########################################################## | ||
|
||
# Edit values for your site. | ||
# your app secret key | ||
SECRET_KEY='ADD-YOUR-CUSTOM-KEY-HERE' | ||
# For openai | ||
OPENAI_API_KEY=YOURKEY | ||
# add IP what you allow like superadmin | ||
ALLOWED_HOSTS=localhost,0.0.0.0 | ||
# Use * only in dev environment | ||
#ALLOWED_HOSTS=* | ||
# Your SITE URL | ||
APP_URL='https://YOUR-URL-HERE' | ||
|
||
########################################################## | ||
|
||
# "azure" | "openai" | llama2 | ||
OPENAI_API_TYPE=openai | ||
OPENAI_API_MODEL=gpt-4-1106-preview | ||
OPENAI_API_TEMPERATURE=1 | ||
|
||
# If using azure | ||
# AZURE_OPENAI_API_BASE= | ||
# AZURE_OPENAI_API_KEY= | ||
# AZURE_OPENAI_API_VERSION=2023-03-15-preview | ||
# AZURE_OPENAI_EMBEDDING_MODEL_NAME= | ||
# AZURE_OPENAI_DEPLOYMENT_NAME= | ||
# AZURE_OPENAI_COMPLETION_MODEL=gpt-35-turbo | ||
|
||
# "azure" | "openai" | llama2 | ||
EMBEDDING_PROVIDER=openai | ||
|
||
# Vector Store, PINECONE|QDRANT | ||
STORE=QDRANT | ||
|
||
|
||
# if using pinecone | ||
# PINECONE_API_KEY= | ||
# PINECONE_ENV= | ||
# VECTOR_STORE_INDEX_NAME= | ||
|
||
|
||
# if using qdrant | ||
QDRANT_URL=http://qdrant:6333 | ||
|
||
|
||
# optional, defaults to 15 | ||
MAX_PAGES_CRAWL=150 | ||
|
||
# --- these will change if you decide to start testing the software | ||
CELERY_BROKER_URL=redis://redis:6379/ | ||
CELERY_RESULT_BACKEND=redis://redis:6379/ | ||
DATABASE_NAME=openchat | ||
DATABASE_USER=dbuser | ||
DATABASE_PASSWORD=dbpass | ||
DATABASE_HOST=mysql | ||
DATABASE_PORT=3306 | ||
|
||
# use 'external' if you want to use below services. | ||
PDF_LIBRARY = 'external' | ||
|
||
#PDF API - OCRWebService.com (REST API). https://www.ocrwebservice.com/api/restguide | ||
#Extract text from scanned images and PDF documents and convert into editable formats. | ||
#Please create new account with ocrwebservice.com via http://www.ocrwebservice.com/account/signup and get license code | ||
OCR_LICCODE = 'LICENSE-CODE' | ||
OCR_USERNAME = 'USERNAME' | ||
OCR_LANGUAGE = 'english' | ||
# 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. | ||
# Use 1 to enable, 0 to disable. | ||
OCR_LLM = '1' | ||
|
||
# retrieval_qa | conversation_retrieval, retrieval_qa works better with azure openai | ||
# if you want to use the conversation_retrieval | retrieval_qa chain | ||
CHAIN_TYPE=conversation_retrieval | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters