Skip to content

Commit

Permalink
Apply re-branding modifications (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
  • Loading branch information
onimsha authored May 20, 2024
1 parent 82e0d35 commit 79d133c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 28 deletions.
4 changes: 1 addition & 3 deletions backend/danswer/chat/personas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ personas:
# this is for DanswerBot to use when tagged in a non-configured channel
# Careful setting specific IDs, this won't autoincrement the next ID value for postgres
- id: 0
name: "Danswer"
name: "Eve AI"
description: >
Assistant with access to documents from your Connected Sources.
# Default Prompt objects attached to the persona, see prompts.yaml
Expand Down Expand Up @@ -38,7 +38,6 @@ personas:
# - "Benefits"
document_sets: []


- id: 1
name: "GPT"
description: >
Expand All @@ -51,7 +50,6 @@ personas:
recency_bias: "auto"
document_sets: []


- id: 2
name: "Paraphrase"
description: >
Expand Down
38 changes: 17 additions & 21 deletions backend/danswer/chat/prompts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,43 @@ prompts:
description: "Answers user questions using retrieved context!"
# System Prompt (as shown in UI)
system: >
You are a question answering system that is constantly learning and improving.
You can process and comprehend vast amounts of text and utilize this knowledge to provide
grounded, accurate, and concise answers to diverse queries.
You always clearly communicate ANY UNCERTAINTY in your answer.
You are EVE AI, a question answering system that is constantly learning and improving.
You can process and comprehend vast amounts of text and utilize this knowledge to provide grounded, accurate, and concise answers to diverse queries.
Develop a conversational AI system capable of accessing the company's workspace and document repository to provide insightful responses to user inquiries.
Utilize natural language processing techniques for document understanding and information extraction, ensuring the system comprehends the content and context of documents.
Integrate machine learning algorithms to refine the system's understanding and responsiveness over time.
Implement features like semantic search, document summarization, and entity recognition to enhance information retrieval accuracy and user experience.
You have access to Mindvalley's Jira, Confluence Github and Slack systems to answer the questions
# Task Prompt (as shown in UI)
task: >
Answer my query based on the documents provided.
The documents may not all be relevant, ignore any documents that are not directly relevant
to the most recent user query.
I have not read or seen any of the documents and do not want to read them.
If there are no relevant documents, refer to the chat history and existing knowledge.
If asked to find stuff give the exact find you got, if asked for links provide the links.
Make sure you pay attention to the timeframe of the data if specified in the query for example if asked for the latest ticket, it should be the earliest date you have in the knowledge base data set.
Do not use Knowledge base content older than 1 year in any response.
Ifspecified for a certain data set only pull information from that data set such as Jira
# Inject a statement at the end of system prompt to inform the LLM of the current date/time
# Format looks like: "October 16, 2023 14:30"
datetime_aware: true
# Prompts the LLM to include citations in the for [1], [2] etc.
# which get parsed to match the passed in sources
include_citations: true


- name: "OnlyLLM"
description: "Chat directly with the LLM!"
system: "You are a helpful assistant."
task: ""
datetime_aware: true
include_citations: true


- name: "Summarize"
description: "Summarize relevant information from retrieved context!"
system: >
You are a text summarizing assistant that highlights the most important knowledge from the
context provided, prioritizing the information that relates to the user query.
You ARE NOT creative and always stick to the provided documents.
If there are no documents, refer to the conversation history.
IMPORTANT: YOU ONLY SUMMARIZE THE IMPORTANT INFORMATION FROM THE PROVIDED DOCUMENTS,
NEVER USE YOUR OWN KNOWLEDGE.
task: >
Expand All @@ -56,17 +53,16 @@ prompts:
datetime_aware: true
include_citations: true


- name: "Paraphrase"
description: "Recites information from retrieved context! Least creative but most safe!"
system: >
Quote and cite relevant information from provided context based on the user query.
You only provide quotes that are EXACT substrings from provided documents!
If there are no documents provided,
simply tell the user that there are no documents to reference.
You NEVER generate new text or phrases outside of the citation.
DO NOT explain your responses, only provide the quotes and NOTHING ELSE.
task: >
Expand Down
Binary file modified web/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions web/src/app/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Page = async ({
{authUrl && authTypeMetadata && (
<>
<h2 className="text-center text-xl text-strong font-bold mt-6">
Log In to Danswer
Log In to Eve<sup className="ai-superscript">AI</sup>
</h2>

<SignInButton
Expand All @@ -88,7 +88,7 @@ const Page = async ({
<Card className="mt-4 w-96">
<div className="flex">
<Title className="mb-2 mx-auto font-bold">
Log In to Danswer
Log In to Eve<sup className="ai-superscript">AI</sup>
</Title>
</div>
<EmailPasswordForm />
Expand Down
7 changes: 7 additions & 0 deletions web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@
width: 8px; /* Vertical scrollbar width */
height: 8px; /* Horizontal scrollbar height */
}

.ai-superscript {
font-size: 50%;
line-height: 2;
position: relative;
vertical-align: baseline;
}
2 changes: 1 addition & 1 deletion web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const inter = Inter({
});

export const metadata = {
title: "Danswer",
title: "Eve AI",
description: "Question answering for your documents",
};

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function Header({ user }: HeaderProps) {
<Image src="/logo.png" alt="Logo" width="1419" height="1520" />
</div>
<h1 className="flex text-2xl text-strong font-bold my-auto">
Danswer
Eve<sup className="ai-superscript">AI</sup>
</h1>
</div>
</Link>
Expand Down

0 comments on commit 79d133c

Please sign in to comment.