ai-kit / utilities /constants.py
Kim Adams
adding more langs
9ae282c
SUMMARY_MD_HEAD="## Summary"
SUMMARY_MD_SUBHEAD="##### Understand legacy software, complex or technical documents with summarization."
SUMMARY_MD_DIRECTIONS="Enter text or select one of the Code & Document Examples, below. Then tap Summarize."
PROMPT_DESCRIPTION="Explore how generative AI can be used to create content. Personas let you explore the variety of roles the system can take on. Translation options specify the language for your response. Voice options are an assortment of AI voices that will bring messages to life. Check the Sentiment box to see how the system identifies sentiment from conversation. Check the emotion to see how the sytem detects your emotion."
PROMPT_DIRECTIONS="To get started, select a Persona, Language, and Voice. If you'd like Sentiment or Emotion analysis, check the respective box. Tap the 'Record from microphone' button and say what's on your mind, tap 'Stop recording' when your done. If you're happy with what you've said, tap 'Submit' to send your request, otherwise tap 'Clear' to record a new message."
SUMMARY_PURPOSE="Generative AI can help you make sense of complicated text. Summarization is a power tool to help you understand functionality in legacy code, key concepts in technical documentation, and catch nuance in legal or regulatory papers."
SUMMARY_DIRECTIONS="To get started, type or paste some text into the 'Original Document' box, or if you prefer, select one of Code & Document Examples, below. Then tap 'Summarize' and the document will be summarized, results will display in the 'Summary' box."
IMAGE_PURPOSE="Generative AI can help you visualize your ideas. Image Creation is a powerful tool to help you create images for your presentations, documents, or social media posts. 'Art Style' and 'Image Setting' are backed with preset prompts, these allow simple prompts to create impressive images."
IMAGE_DIRECTIONS="To get started, select an 'Art Style' and 'Image Setting'. Then enter a description of what you'd like to see in the 'Image Prompt' box. Then tap 'Generate Images' and the system will create three images based on your description. Results will display in the 'Generated Images' boxes, below."
RECORDING_ANALYSIS_PURPOSE="Generative AI can help you quickly summarize and identify key concepts from videos. The 'Translation' action chains 3 tasks together using preset prompts. The first task separates and translates the audio to text using OpenAI Whisper-1, the second summarizes the text using OpenAI Chat Completion and the third extracts key concepts from the video also using OpenAI Chat Completion."
RECORDING_ANALYSIS_DIRECTIONS="To get started, upload a video (.mp4) that you'd like to summarize. IMPORTANT: Your video must be less than 2 minutes to process on this instance. Tap 'Translate'. You'll see a Summary of the video in the 'Summary' section and a set of key concepts in the 'Topics' section. Prompt history will display in the 'OpenAI Communication Log' box, below."
SLACK_SENTIMENT_ANALYSIS_PURPOSE="Generative AI can help you understand the sentiment of your Slack messages. The 'Analyze Sentiment' action parses Slack content and uses OpenAI Chat Completion to score the sentiment of each message. The 'Sentiment' scatterplot shows the distribution of sentiment over the dataset."
SLACK_SENTIMENT_ANALYSIS_DIRECTIONS="To get started select one of the slack data options in 'Slack Examples' below, you'll see the Slack content in the 'Original' textbox. Next tap 'Analyze Sentiment'. ChatCompletion calls will provide sentiment scores for each message. The results will be displayed in the 'Dataframe' section. Finally, the distribution of sentiment over the dataset is shown in the 'Sentiment' scatterplot. Prompt history will display in the 'OpenAI Communication Log' box, below."
NLP_ANALYSIS_PURPOSE="Natural Language Processing (NLP) enables us to understand the structure and meaning in text. This view provides some understanding of NLP under the hood of Generative AI."
NLP_ANALYSIS_DIRECTIONS="Start by entering a sentence or paragraph in the 'Text' box. Then tap 'Analyze'. You'll see token counts, part-of-speech tags, and a visual representation of the analysis."
NLP_PROMPT="Enter text to analyze..."
AR_ADVISOR_PURPOSE = "This component demonstrates how a chatbot can leverage local embeddings to provide context. In this example, embeddings were created from USAA's 2022 Member Report provide organizational context for all interactions. This shows how generative AI enables any dataset to be queried and explored via natural language."
AR_ADVISOR_DIRECTIONS = "To get started, simply start asking questions. This bot has been trainged on USAA's 2022 Member Report and can answer questions about any content from the report. You can ask questions like: 'What's the best thing that happened last year?' or 'What was the biggest obstancle faced in 2022?'"
CHAT_BOT="Conversation Log"
CHAT_BOT_INPUT="Ask a Question"
CHAT_BOT_HEIGHT=800
VOICE_1="Sally"
VOICE_2="Earl"
VOICE_3="Luke"
VOICE_4="Vin"
VOICE_5="Ebony"
VOICE_6="Matilda"
VOICE_7="Serena"
VOICE_8="Sasha"
VOICE_9="Adam"
SAMPLE_1="C#"
SAMPLE_2="Python"
SAMPLE_3="Java"
SAMPLE_4="SQL"
SAMPLE_5="None"
EX_1="Stored Procedure 1"
EX_2="Stored Procedure 2"
EX_3="COBOL 1"
EX_4="COBOL 2"
EX_5="Jupyter 1"
EX_6="Jupyter 2"
EX_7="Python 1"
EX_8="Python 2"
EX_9="PDF 1"
EX_10="PDF 2"
SLACK_1="Slack 1"
SLACK_2="Slack 2"
PDF_PREFIX = "utilities/data/pdf/"
TXT_PREFIX = "utilities/data/txt/"
JSON_PREFIX = "utilities/data/json/"
JSON_1="Slack 1"
JSON_2="Slack 2"
JSON_3="Slack 3"
JSON_4="Slack 4"
JSON_5="Slack 5"
JSON_6="Slack 6"
JSON_7="Slack 7"
JSON_8="Slack 8"
LANGUAGE_1="English"
LANGUAGE_2="Spanish"
LANGUAGE_3="French"
IMAGE_ART_1="Impressionism"
IMAGE_ART_2="Pop Art"
IMAGE_ART_3="Cubism"
IMAGE_ART_4="Baroque"
IMAGE_ART_5="Photorealism"
IMAGE_ART_6="Cartoon"
IMAGE_ART_7="Surrealism"
IMAGE_ART_8="Pointillism"
IMAGE_ART_9="Blue Print"
IMAGE_ART_10="Line Art"
IMAGE_SETTING_1="Still Life"
IMAGE_SETTING_2="Historical"
IMAGE_SETTING_3="Portrait"
IMAGE_SETTING_4="High Fashion"
IMAGE_SETTING_5="Abstract"
IMAGE_SETTING_6="Travel & Adventure"
IMAGE_SETTING_7="Steampunk"
IMAGE_SETTING_8="SCI-FI"
IMAGE_SETTING_9="Landscape"
IMAGE_SETTING_10="Wildlife"
PERSONA_HR_EXPERT="HR Expert"
PERSONA_CUS_SERVICE="Customer Service"
PERSONA_FIN_EXPERT="Financial Expert"
PERSONA_IT_EXPERT="IT Expert"
PERSONA_INS_AGENT="Insurance Agent"
PERSONA_INVESTIGATOR="Investigator"
QUESTIONS_PREFIX="You can ask questions like: "
QUESTIONS_HR_EXPERT="What benefits are provided? Is there a 401k match? How many vacation days can I expect each year?"
QUESTIONS_CUSTOMER_SERVICE="What is the return policy? How long do I have to return an item? What is the warranty?"
QUESTIONS_FINANCIAL_EXPERT="Where should I focus my investment strategy? How should I diversify my portfolio? How are interest rates impacting me?"
QUESTIONS_IT_EXPERT="I'm not able to connect to the network. My screen is locked. How do I log in to my computer?"
QUESTIONS_INSURANCE_AGENT="What is the process for filing a claim? What is the deductible? How long will it take to process my claim?"
QUESTIONS_INVESTIGATOR="How do I report a crime? What is the process for filing a police report? What information do you need?"
QUESTIONS_INVESTIGATOR="How do I report a crime? What is the process for filing a police report? What information do you need?"
QUESTIONS_AR_EXPERT="How was 2022? What was one of the biggest challenges? What were your biggest wins? What's next for USAA?"
#tab navigator labels
UI_1="Prompt Builder"
UI_8="Summary Extraction"
UI_3="Image Creation"
UI_4="Recording Analysis"
UI_5="Slack Sentiment Analysis"
UI_6="Image to Text"
UI_7="PDF Query Chatbot"
UI_2="NLP Text Analysis"
UI_9="AI Browser"
PURPOSE_MD="### Purpose"
DIRECTIONS_MD="### Directions"
OPENAI_LOG="OpenAI Communication Log"
PERSONA="Persona"
PERSONA_INFO="What role would you like the system to play?"
TRANSLATION="Translation"
TRANSLATION_INFO="Which language would you like responses in?"
SENTIMENT="Sentiment"
SENTIMENT_INFO="Check to enable sentiment analysis."
EMOTION="Emotion"
EMOTION_INFO="Check to enable emotion detection."
VOICE="Voice"
VOICE_INFO="Which voice would you like to use?"
ASK_A_QUESTION="Ask a question"
MICROPHONE_MD="### Use your microphone to record a question."
STOP_RECORDING="Stop recording"
CLEAR="Clear"
SUBMIT="Submit"
SUMMARY="Summary"
SUMMARIZATION="Summarization"
SUMMARIZE="Summarize"
SUMMARIZATION_TRUNCATION="***Code was truncated. Only first 14000 characters are included in the summary.***\n\n"
CHAR_COUNT="\n\nNum Characters: "
TOKENS="Tokens"
NLP_ANALYSIS_MD="### NLP Analysis"
NLP_POS_MAP_MD="### NLP POS Map"
FILE_DOES_NOT_EXIST="does not exist."
ORIGINAL_DOC="Original Document"
SUMMARIZE_INFO="Pick a document to summarize."
TRANSLATION_INFO="Pick a language to translate to."
CODE_DOC_EXAMPLES_MD="### Code & Document Examples"
CODE_LANG_SAMPLES_MD="### Target Language Options"
IMAGE_PROMPT="Image Prompt"
IMAGE_PLACEHOLDER="Enter a description of what you'd like to see."
ART_STYLE="Art Style"
ART_STYLE_INFO="Select an art style."
IMAGE_SETTING="Image Setting"
IMAGE_SETTING_INFO="Select an image setting."
GENERATE_IMAGES="Generate Images"
GENERATED_IMAGES="Generated Images"
TOPICS_MD="### Topics"
IMAGE_INPUT="Upload an Image(.png, .jpg, .jpeg)"
VIDEO_INPUT="Upload a Video(.mp4)"
EXTRACT_SUMMARY="Extract Summary"
RECORDING_ANALYSIS="Recording Analysis"
TEXT_ANALYSIS="Text Analysis"
#slack analysis
DATAFRAME="Dataframe"
INITIAL_SLACK="Initial Slack"
POSITIVE_TREND="Positive Leaning Examples"
NEGATIVE_TREND="Negative Leaning Examples"
SENTIMENT_DATA_MD="### Sentiment Data"
SLACK_EXAMPLES_MD="### Slack Examples"
SENTIMENT_MD="### Sentiment Scatterplot"
SENTIMENT="Sentiment"
SLACK_SENTIMENT_ANALYSIS="Slack Sentiment Analysis"
ANALYZE_SENTIMENT="Analyze Sentiment"
ANALYZE="Analyze"
PEOPLE="People"
#defaults
DEFAULT_LANGUAGE=LANGUAGE_1
DEFAULT_PERSONA=PERSONA_HR_EXPERT
DEFAULT_VOICE=VOICE_1
DEFAULT_QUESTIONS= QUESTIONS_HR_EXPERT
DEFAULT_DOC_EX= EX_1
DEFAULT_ART= IMAGE_ART_1
DEFAULT_SETTING= IMAGE_SETTING_1
SYMBOL_TO_WORD = {
"-": "dash",
'+': "plus",
'=': "equals",
'/': "slash",
'*': "asterisk",
'&': "and",
'%': "percent",
'@': "at",
'#': "pound"
}
#video analysis
TRANSCRIPT_PATH="recording_analysis/transcripts/"
ORIGINALS_PATH="recording_analysis/originals/"
ANALYSIS_PATH="recording_analysis/data/"
ANALYSIS_WRONG_FORMAT="File should be .mp4, .mov, .avi, or .mkv format."
ANALYSIS_MODEL ="gpt-3.5-turbo"
INSIGHTS_MODEL="gpt-4o"
SUMMARY_TOKENS=1024
KEYWORD_TOKENS=300
NUM_RESULTS=1
TEMP=0
TOP_P=0.2
CHUNK_LENGTH=2500
#simple Chatbot
PDF_INPUT_PATH = 'utilities/data/pdfs/usaa.pdf'
TXT_OUTPUT_PATH = 'utilities/data/txt/usaa.txt'
GIT_TXT_OUTPUT_PATH = 'utilities/data/txt/git.txt'
CSV_PATH = 'utilities/data/csv/usaa.csv'
PKL_PATH = 'utilities/data/pkl/usaa.pkl'
ZIP_INPUT_PATH='utilities/data/zip/main.zip'
GIT_CSV_PATH = 'utilities/data/csv/git.csv'
GIT_PKL_PATH = 'utilities/data/pkl/git.pkl'
EMBEDDING_CHUNK_LENGTH=500
HR_BENEFIT_PKL = 'utilities/data/embeddings/hr_asst_embeddings.pkl'
HR_BENEFIT_CSV = 'utilities/data/embeddings/hr_asst_data.csv'
POLICY_INPUT='utilities/data/pdfs/policy.pdf'
POLICY_OUTPUT='utilities/data/csv/policy.csv'
POLICY_TXT_PATH = 'utilities/data/txt/policy.txt'
POLICY_PKL_PATH='utilities/data/pkl/policy.pkl'