Skip to content

Commit

Permalink
added updated message
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 11, 2024
1 parent d7b4a0d commit 2b39dd4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ maxUploadSize = 20
primaryColor = "#c5203e" # Red
backgroundColor = "#ffffff" # White
secondaryBackgroundColor = "#091f40" # Navy Blue
textColor = "#091f40" # Navy Blue for text
textColor = "#000000" # Black for visibility
font = "sans serif"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ The following Python libraries are required to run this app:

## License

This project is licensed under the MIT License.
This project is licensed under the Apache License.
59 changes: 45 additions & 14 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Configure page settings and styling
st.set_page_config(
page_title="🇺🇸 VetsAI: Vets Who Code Assistant",
page_title="🇺VetsAI: Vets Who Code Assistant",
page_icon="🇺🇸",
layout="wide",
)
Expand Down Expand Up @@ -565,19 +565,50 @@ def main():
return

# Generate and display assistant response
with st.chat_message("assistant"):
try:
messages = st.session_state.messages.copy()
messages.insert(0, {
"role": "system",
"content": (
"You are a specialized AI assistant for Vets Who Code troops. "
"Focus specifically on our tech stack: JavaScript, TypeScript, "
"Python, CSS, Tailwind, FastAPI, Flask, Next.js, Django, and AI/ML. "
"Always reference these specific technologies in your answers. "
"Remember all users are VWC troops learning our stack."
)
})
with st.chat_message("assistant"):
try:
messages = st.session_state.messages.copy()
messages.insert(0, {
"role": "system",
"content": (
"You are a specialized AI assistant for Vets Who Code members, designed to provide clear, practical technical guidance "
"to veterans transitioning into software development careers.\n\n"

"CORE TECH STACK:\n"
"- Frontend: JavaScript, TypeScript, React, Next.js\n"
"- Styling: CSS, Tailwind CSS\n"
"- Backend: Python, FastAPI\n"
"- Data & Visualization: Streamlit\n"
"- Advanced: AI/ML fundamentals\n"
"- Development Tools: Git, GitHub, VS Code\n"
"- Testing: Jest, Pytest\n\n"

"CAREER TRANSITION GUIDANCE:\n"
"1. Resume Development:\n"
" - Technical Skills: Programming Languages, Frameworks, Tools, Cloud, Testing\n"
" - Military Experience Translation: Leadership, Problem-solving, Team Collaboration\n\n"

"2. Portfolio Development:\n"
" - Clean code and documentation\n"
" - Version control and API integration\n"
" - Responsive design and performance\n"
" - Testing and TypeScript implementation\n"
" - Security and accessibility standards\n\n"

"LEARNING PATHS:\n"
"1. Fundamentals: HTML, CSS, JavaScript, Git\n"
"2. Intermediate: TypeScript, React, Python\n"
"3. Advanced: Next.js, FastAPI, Streamlit, AI/ML\n\n"

"PROJECT FOCUS:\n"
"1. Portfolio Projects: Personal website, APIs, Data visualization\n"
"2. Technical Skills: Code quality, Testing, Security, Performance\n"
"3. Career Materials: GitHub profile, Technical blog, Documentation\n\n"

"Remember: Provide practical guidance for building technical skills and transitioning to software development careers. "
"Focus on concrete examples and best practices."
)
})

response = get_chat_response(messages)
st.markdown(response)
Expand Down

0 comments on commit 2b39dd4

Please sign in to comment.