Skip to content

Commit

Permalink
Update libraries and model
Browse files Browse the repository at this point in the history
  • Loading branch information
DFoxArdent committed Aug 30, 2024
1 parent 52ad823 commit c86be69
Show file tree
Hide file tree
Showing 3,449 changed files with 900,985 additions and 289 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
54 changes: 31 additions & 23 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Chat
DEBUG=True
AZURE_OPENAI_RESOURCE=
AZURE_OPENAI_MODEL=
AZURE_OPENAI_KEY=
AZURE_OPENAI_RESOURCE=atlasailive
AZURE_OPENAI_MODEL=atlasailive-gpt-35-turbo-16k
AZURE_OPENAI_KEY=1899932e9f18456f97bed98c87fa05d5
AZURE_OPENAI_MODEL_NAME=gpt-35-turbo-16k
AZURE_OPENAI_TEMPERATURE=0
AZURE_OPENAI_TOP_P=1.0
AZURE_OPENAI_MAX_TOKENS=1000
AZURE_OPENAI_MAX_TOKENS=5000
AZURE_OPENAI_STOP_SEQUENCE=
AZURE_OPENAI_SEED=
AZURE_OPENAI_CHOICES_COUNT=1
Expand All @@ -19,33 +19,37 @@ AZURE_OPENAI_TOOL_CHOICE=
AZURE_OPENAI_SYSTEM_MESSAGE=You are an AI assistant that helps people find information.
AZURE_OPENAI_PREVIEW_API_VERSION=2024-05-01-preview
AZURE_OPENAI_STREAM=True
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_EMBEDDING_NAME=
AZURE_OPENAI_ENDPOINT=https://atlasailive.openai.azure.com/
AZURE_OPENAI_EMBEDDING_NAME=atlasailive-text-embedding-ada-002
AZURE_OPENAI_EMBEDDING_ENDPOINT=
AZURE_OPENAI_EMBEDDING_KEY=

# User Interface
UI_TITLE=
UI_LOGO=
UI_CHAT_LOGO=
UI_CHAT_TITLE=
UI_CHAT_DESCRIPTION=
UI_FAVICON=

# Chat history
AZURE_COSMOSDB_ACCOUNT=
AZURE_COSMOSDB_ACCOUNT=db-atlas-ai
AZURE_COSMOSDB_DATABASE=db_conversation_history
AZURE_COSMOSDB_CONVERSATIONS_CONTAINER=conversations
AZURE_COSMOSDB_ACCOUNT_KEY=
AZURE_COSMOSDB_ENABLE_FEEDBACK=False

# Chat with data: common settings
DATASOURCE_TYPE=
DATASOURCE_TYPE=AzureCognitiveSearch
SEARCH_TOP_K=5
SEARCH_STRICTNESS=3
SEARCH_ENABLE_IN_DOMAIN=True

# Chat with data: Azure AI Search
AZURE_SEARCH_SERVICE=
AZURE_SEARCH_INDEX=
AZURE_SEARCH_KEY=
AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG=
AZURE_SEARCH_SERVICE=atlasailive
AZURE_SEARCH_INDEX=atlas-ai-live-index
AZURE_SEARCH_KEY=ipSX0pah3fQiOsSCYoVugfvFrL1uHdBJuONC9xIgUvAzSeBmx3RI
AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG=default
AZURE_SEARCH_INDEX_IS_PRECHUNKED=False
AZURE_SEARCH_TOP_K=5
AZURE_SEARCH_ENABLE_IN_DOMAIN=False
Expand All @@ -54,15 +58,15 @@ AZURE_SEARCH_FILENAME_COLUMN=
AZURE_SEARCH_TITLE_COLUMN=
AZURE_SEARCH_URL_COLUMN=
AZURE_SEARCH_VECTOR_COLUMNS=
AZURE_SEARCH_QUERY_TYPE=simple
AZURE_SEARCH_QUERY_TYPE=vectorSemanticHybrid
AZURE_SEARCH_PERMITTED_GROUPS_COLUMN=
AZURE_SEARCH_STRICTNESS=3

# Chat with data: Azure CosmosDB Mongo VCore
AZURE_COSMOSDB_MONGO_VCORE_CONNECTION_STRING=
AZURE_COSMOSDB_MONGO_VCORE_DATABASE=
AZURE_COSMOSDB_MONGO_VCORE_CONTAINER=
AZURE_COSMOSDB_MONGO_VCORE_INDEX=
AZURE_COSMOSDB_MONGO_VCORE_INDEX=
AZURE_COSMOSDB_MONGO_VCORE_TOP_K=
AZURE_COSMOSDB_MONGO_VCORE_STRICTNESS=
AZURE_COSMOSDB_MONGO_VCORE_ENABLE_IN_DOMAIN=
Expand All @@ -71,20 +75,22 @@ AZURE_COSMOSDB_MONGO_VCORE_FILENAME_COLUMN=
AZURE_COSMOSDB_MONGO_VCORE_TITLE_COLUMN=
AZURE_COSMOSDB_MONGO_VCORE_URL_COLUMN=
AZURE_COSMOSDB_MONGO_VCORE_VECTOR_COLUMNS=

# Chat with data: Elasticsearch
ELASTICSEARCH_ENDPOINT=
ELASTICSEARCH_ENCODED_API_KEY=
ELASTICSEARCH_INDEX=
ELASTICSEARCH_QUERY_TYPE=
ELASTICSEARCH_TOP_K=
ELASTICSEARCH_ENABLE_IN_DOMAIN=
ELASTICSEARCH_CONTENT_COLUMNS=
ELASTICSEARCH_ENABLE_IN_DOMAIN=
ELASTICSEARCH_CONTENT_COLUMNS=
ELASTICSEARCH_FILENAME_COLUMN=
ELASTICSEARCH_TITLE_COLUMN=
ELASTICSEARCH_URL_COLUMN=
ELASTICSEARCH_VECTOR_COLUMNS=
ELASTICSEARCH_STRICTNESS=
ELASTICSEARCH_EMBEDDING_MODEL_ID=
ELASTICSEARCH_EMBEDDING_MODEL_ID=

# Chat with data: Pinecone
PINECONE_ENVIRONMENT=
PINECONE_API_KEY=
Expand All @@ -96,20 +102,22 @@ PINECONE_CONTENT_COLUMNS=
PINECONE_FILENAME_COLUMN=
PINECONE_TITLE_COLUMN=
PINECONE_URL_COLUMN=
PINECONE_VECTOR_COLUMNS=
PINECONE_VECTOR_COLUMNS=

# Chat with data: Azure Machine Learning MLIndex
AZURE_MLINDEX_NAME=
AZURE_MLINDEX_VERSION=
AZURE_ML_PROJECT_RESOURCE_ID=
AZURE_MLINDEX_TOP_K=
AZURE_MLINDEX_STRICTNESS=
AZURE_MLINDEX_TOP_K=
AZURE_MLINDEX_STRICTNESS=
AZURE_MLINDEX_ENABLE_IN_DOMAIN=
AZURE_MLINDEX_CONTENT_COLUMNS=
AZURE_MLINDEX_CONTENT_COLUMNS=
AZURE_MLINDEX_FILENAME_COLUMN=
AZURE_MLINDEX_TITLE_COLUMN=
AZURE_MLINDEX_URL_COLUMN=
AZURE_MLINDEX_TITLE_COLUMN=
AZURE_MLINDEX_URL_COLUMN=
AZURE_MLINDEX_VECTOR_COLUMNS=
AZURE_MLINDEX_QUERY_TYPE=

# Chat with data: Prompt flow API
USE_PROMPTFLOW=False
PROMPTFLOW_ENDPOINT=
Expand Down
Binary file not shown.
Empty file.
1,016 changes: 1,016 additions & 0 deletions .vs/AtlasAILive-Merge/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/AtlasAILive-Merge/v17/.wsuo
Binary file not shown.
Binary file added .vs/AtlasAILive-Merge/v17/Browse.VC.db
Binary file not shown.
Binary file added .vs/AtlasAILive-Merge/v17/workspaceFileList.bin
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "No Configurations"
}
4 changes: 4 additions & 0 deletions .vs/PythonSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"SuppressEnvironmentCreationPrompt": true,
"SuppressConfigureTestFrameworkPrompt": "true"
}
16 changes: 16 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"ExpandedNodes": [
"",
"\\venv",
"\\venv\\Lib",
"\\venv\\Lib\\site-packages",
"\\venv\\Lib\\site-packages\\pip\\_vendor",
"\\venv\\Lib\\site-packages\\pip\\_vendor\\platformdirs",
"\\venv\\Lib\\site-packages\\win32",
"\\venv\\Lib\\site-packages\\win32comext",
"\\venv\\Lib\\site-packages\\win32comext\\shell",
"\\venv\\Lib\\site-packages\\win32\\lib"
],
"SelectedNode": "\\venv\\Lib\\site-packages\\win32\\lib\\win32con.py",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
10 changes: 5 additions & 5 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class _UiSettings(BaseSettings):
logo: Optional[str] = None
chat_logo: Optional[str] = None
chat_title: str = "Start chatting"
chat_description: str = "This chatbot is configured to answer your questions"
favicon: str = "/favicon.ico"
chat_description: str = "This chatbot is configured with additional knowledge about Ardent Management"
favicon: str = "/Atlas.ico"
show_share_button: bool = True
show_chat_history_button: bool = True

Expand Down Expand Up @@ -105,9 +105,9 @@ class _AzureOpenAISettings(BaseSettings):
key: Optional[str] = None
resource: Optional[str] = None
endpoint: Optional[str] = None
temperature: float = 0
top_p: float = 0
max_tokens: int = 1000
temperature: float = 0.3
top_p: float = 0.7
max_tokens: int = 4000
stream: bool = True
stop_sequence: Optional[List[str]] = None
seed: Optional[int] = None
Expand Down
14 changes: 7 additions & 7 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="{{ favicon }}" />
<link rel="icon" type="image/x-icon" href="/src/assets/Atlas.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
</head>
<body>
<title>Atlas AI</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
</body>
</html>
Binary file added frontend/public/Alaska-VF.ttf
Binary file not shown.
Binary file added frontend/public/Atlas.ico
Binary file not shown.
Binary file added frontend/src/assets/Alaska-VF.ttf
Binary file not shown.
18 changes: 18 additions & 0 deletions frontend/src/assets/Ardent A.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/Ardent Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions frontend/src/assets/Atlas AI Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/Atlas.ico
Binary file not shown.
16 changes: 8 additions & 8 deletions frontend/src/assets/Send.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/ChatHistory/ChatHistoryPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function ChatHistoryPanel(_props: ChatHistoryPanelProps) {
closeButtonAriaLabel: 'Close',
subText: !clearingError
? 'All chat history will be permanently removed.'
: 'Please try again. If the problem persists, please contact the site administrator.'
: 'Please try again. If the problem persists, please contact the Digital Solutions team.'
}

const modalProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
height: 4px;
left: 0%;
bottom: 0%;
background: radial-gradient(106.04% 106.06% at 100.1% 90.19%, #0f6cbd 33.63%, #8dddd8 100%);
background: radial-gradient(106.04% 106.06% at 100.1% 90.19%,#00DA96 33.63%,#bef3e2 100%);
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
width: 86px;
height: 32px;
border-radius: 4px;
background: radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0f6cbd 33.63%, #2d87c3 70.31%, #8dddd8 100%);
background: radial-gradient(109.81% 107.82% at 100.1% 90.19%, #00DA96 33.63%, #47E0B0 70.31%, #7EE8C7 100%);
padding: 5px 12px;
}

.shareButtonRoot:hover {
background: linear-gradient(135deg, #0f6cbd 0%, #2d87c3 51.04%, #8dddd8 100%);
background: linear-gradient(135deg, #00DA96 0%, #47E0B0 51.04%, #7EE8C7 100%);
}

.shareButtonRoot span {
Expand Down
39 changes: 21 additions & 18 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
* {
box-sizing: border-box;
@font-face {
font-family: 'Alaska';
src: url('assets/Alaska-VF.ttf') format('truetype');
}

/* Reset default styling and use border-box sizing for all elements */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Base styles for the html and body */
html,
body {
height: 100%;
margin: 0;
padding: 0;
height: 100%;
margin: 0;
padding: 0;
}

/* Set a background color and font settings for the entire page */
html {
background: #f2f2f2;
font-family:
'Segoe UI',
'Segoe UI Web (West European)',
'Segoe UI',
-apple-system,
BlinkMacSystemFont,
Roboto,
'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #f2f2f2;
font-family: 'Alaska', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Ensure that the root div takes up the full height of the page */
#root {
height: 100%;
height: 100%;
}
Loading

0 comments on commit c86be69

Please sign in to comment.