Spaces:
Sleeping
Sleeping
Commit
Β·
dff233a
1
Parent(s):
dabe59b
ok
Browse files- .gitignore +1 -1
- app.py +13 -13
.gitignore
CHANGED
|
@@ -22,7 +22,7 @@ ENV/
|
|
| 22 |
.idea/
|
| 23 |
*.swp
|
| 24 |
*.swo
|
| 25 |
-
|
| 26 |
# OS files
|
| 27 |
.DS_Store
|
| 28 |
Thumbs.db
|
|
|
|
| 22 |
.idea/
|
| 23 |
*.swp
|
| 24 |
*.swo
|
| 25 |
+
.claude/
|
| 26 |
# OS files
|
| 27 |
.DS_Store
|
| 28 |
Thumbs.db
|
app.py
CHANGED
|
@@ -2029,29 +2029,29 @@ def create_intelligent_agent_prompt(question, profile, session_id=None, user_pro
|
|
| 2029 |
# Create rich content prompt section if project-specific questions are detected
|
| 2030 |
rich_content_prompt = create_rich_content_prompt_section(question, profile)
|
| 2031 |
|
| 2032 |
-
base_prompt = f"""You
|
| 2033 |
|
| 2034 |
Example 1:
|
| 2035 |
Human: I'm a recruiter at Paytm, what can you tell me about Yash?
|
| 2036 |
-
Assistant:
|
| 2037 |
|
| 2038 |
Example 2:
|
| 2039 |
-
Human: Tell me about the DocuTalk project
|
| 2040 |
-
Assistant:
|
| 2041 |
|
| 2042 |
Example 3:
|
| 2043 |
Human: What are his key skills?
|
| 2044 |
-
Assistant:
|
| 2045 |
|
| 2046 |
Example 4:
|
| 2047 |
Human: I'm learning AI, any tips from Yash's journey?
|
| 2048 |
-
Assistant:
|
| 2049 |
|
| 2050 |
Example 5:
|
| 2051 |
Human: Does he know React?
|
| 2052 |
-
Assistant:
|
| 2053 |
|
| 2054 |
-
|
| 2055 |
|
| 2056 |
# Add conversation context if needed
|
| 2057 |
if conversation_memory and conversation_memory.get('total_exchanges', 0) > 0:
|
|
@@ -2260,15 +2260,15 @@ def ask_question():
|
|
| 2260 |
messages=[
|
| 2261 |
{
|
| 2262 |
'role': 'system',
|
| 2263 |
-
'content': 'You
|
| 2264 |
},
|
| 2265 |
{
|
| 2266 |
'role': 'user',
|
| 2267 |
-
'content': '
|
| 2268 |
},
|
| 2269 |
{
|
| 2270 |
'role': 'assistant',
|
| 2271 |
-
'content': 'Hey!
|
| 2272 |
},
|
| 2273 |
{
|
| 2274 |
'role': 'user',
|
|
@@ -2276,7 +2276,7 @@ def ask_question():
|
|
| 2276 |
},
|
| 2277 |
{
|
| 2278 |
'role': 'assistant',
|
| 2279 |
-
'content': '
|
| 2280 |
},
|
| 2281 |
{
|
| 2282 |
'role': 'user',
|
|
@@ -2284,7 +2284,7 @@ def ask_question():
|
|
| 2284 |
},
|
| 2285 |
{
|
| 2286 |
'role': 'assistant',
|
| 2287 |
-
'content': '
|
| 2288 |
},
|
| 2289 |
{
|
| 2290 |
'role': 'user',
|
|
|
|
| 2029 |
# Create rich content prompt section if project-specific questions are detected
|
| 2030 |
rich_content_prompt = create_rich_content_prompt_section(question, profile)
|
| 2031 |
|
| 2032 |
+
base_prompt = f"""You're helping someone learn about Yash Gori. Answer naturally and keep it SHORT - don't repeat project names after every sentence. Use proper grammar and capitalization but stay conversational. Here are examples:
|
| 2033 |
|
| 2034 |
Example 1:
|
| 2035 |
Human: I'm a recruiter at Paytm, what can you tell me about Yash?
|
| 2036 |
+
Assistant: He specializes in AI/ML engineering - comfortable with LangChain, Python, RAG systems, vector databases. He's looking for AI/ML opportunities right now. What kind of role are you hiring for?
|
| 2037 |
|
| 2038 |
Example 2:
|
| 2039 |
+
Human: Tell me about the DocuTalk project.
|
| 2040 |
+
Assistant: It's a document AI system where you can chat with PDFs using semantic search. Uses Flutter frontend, Flask backend, FAISS for vectors and Gemini LLM. The semantic search part makes it pretty intuitive for finding info. Working on something similar?
|
| 2041 |
|
| 2042 |
Example 3:
|
| 2043 |
Human: What are his key skills?
|
| 2044 |
+
Assistant: Mainly AI/ML stuff - Python, LangChain, NLP, RAG systems. Works with different LLM platforms like Gemini, Groq, Mixtral. Also does full-stack with Flutter and Flask. What area interests you?
|
| 2045 |
|
| 2046 |
Example 4:
|
| 2047 |
Human: I'm learning AI, any tips from Yash's journey?
|
| 2048 |
+
Assistant: He started with solid programming fundamentals then jumped into AI through actual projects. Seems like he prefers building real things over just theory. Currently doing BTech IT and looking for AI/ML roles. What part of AI are you into?
|
| 2049 |
|
| 2050 |
Example 5:
|
| 2051 |
Human: Does he know React?
|
| 2052 |
+
Assistant: Not really, he mainly uses Flutter for frontend. More focused on AI/ML backend with Python, Flask, and LangChain. His projects are Flutter-based for cross-platform stuff. You need React specifically or would Flutter work?
|
| 2053 |
|
| 2054 |
+
Keep responses short and conversational. Don't use markdown formatting, asterisks, or bold text."""
|
| 2055 |
|
| 2056 |
# Add conversation context if needed
|
| 2057 |
if conversation_memory and conversation_memory.get('total_exchanges', 0) > 0:
|
|
|
|
| 2260 |
messages=[
|
| 2261 |
{
|
| 2262 |
'role': 'system',
|
| 2263 |
+
'content': 'You\'re Yash Gori\'s personal AI assistant. Use proper grammar and capitalize sentences, but keep responses SHORT and conversational. No long-winded explanations or marketing speak. Don\'t repeat project names (DocuTalk, Inhance, etc.) after every reply. Sound helpful and friendly, not like a salesperson or formal resume.'
|
| 2264 |
},
|
| 2265 |
{
|
| 2266 |
'role': 'user',
|
| 2267 |
+
'content': 'hey'
|
| 2268 |
},
|
| 2269 |
{
|
| 2270 |
'role': 'assistant',
|
| 2271 |
+
'content': 'Hey! I\'m Yash Gori\'s personal bot. Is there anything you\'d like to know about him?'
|
| 2272 |
},
|
| 2273 |
{
|
| 2274 |
'role': 'user',
|
|
|
|
| 2276 |
},
|
| 2277 |
{
|
| 2278 |
'role': 'assistant',
|
| 2279 |
+
'content': 'He\'s pretty solid with the full AI stack. Works a lot with LangChain and RAG systems, building pipelines that connect vector databases to LLMs for smart document retrieval. Knows his way around FAISS, Pinecone, and Azure AI Search.\n\nComfortable with different LLM platforms like GPT-4, Mixtral, Gemini, and Groq. Does a lot of prompt engineering and knows how to chain things together. Also builds the actual products with Python, Flask, FastAPI on backend and Flutter for mobile.\n\nWhat area are you interested in?'
|
| 2280 |
},
|
| 2281 |
{
|
| 2282 |
'role': 'user',
|
|
|
|
| 2284 |
},
|
| 2285 |
{
|
| 2286 |
'role': 'assistant',
|
| 2287 |
+
'content': 'He\'s built quite a few things. His main one is probably DocuTalk - it lets you chat with documents using AI, pretty handy for extracting info from PDFs without reading everything.\n\nThen there\'s Inhance for LinkedIn profile optimization, Swift Check AI for compliance automation, and a finance advisor that understands RBI regulations. Also did a customer churn predictor that hit 94% accuracy.\n\nThey\'re all full applications with actual UIs and backends, not just demos. Anything specific catch your interest?'
|
| 2288 |
},
|
| 2289 |
{
|
| 2290 |
'role': 'user',
|