npcJensen commited on
Commit
e0225ee
·
verified ·
1 Parent(s): 12df0fa

Upload 15 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ profile-of-hereandnowai.pdf filter=lfs diff=lfs merge=lfs -text
branding.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "brand":
3
+ {
4
+ "organizationName": "HERE AND NOW AI",
5
+ "website": "https://hereandnowai.com",
6
+ "email": "info@hereandnowai.com",
7
+ "mobile": "+91 996 296 1000",
8
+ "slogan": "designed with passion for innovation",
9
+ "colors": {"primary": "#FFDF00", "secondary": "#004040"},
10
+ "logo":
11
+ {
12
+ "title": "https://raw.githubusercontent.com/hereandnowai/images/refs/heads/main/logos/logo-of-here-and-now-ai.png",
13
+ "favicon": "https://raw.githubusercontent.com/hereandnowai/images/refs/heads/main/logos/favicon-logo-with-name.png"}, "chatbot": {"avatar": "https://raw.githubusercontent.com/hereandnowai/images/refs/heads/main/logos/caramel.jpeg", "face": "https://raw.githubusercontent.com/hereandnowai/images/refs/heads/main/logos/caramel-face.jpeg"
14
+ },
15
+
16
+ "socialMedia":
17
+ {
18
+ "blog": "https://hereandnowai.com/blog",
19
+ "linkedin": "https://www.linkedin.com/company/hereandnowai/",
20
+ "instagram": "https://instagram.com/hereandnow_ai",
21
+ "github": "https://github.com/hereandnowai",
22
+ "x": "https://x.com/hereandnow_ai",
23
+ "youtube": "https://youtube.com/@hereandnow_ai"
24
+ }
25
+ }
26
+ }
chatbot.cpython-313.pyc ADDED
Binary file (1.31 kB). View file
 
chatbot.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
+ from dotenv import load_dotenv
3
+ import os
4
+
5
+ load_dotenv()
6
+ api_key = os.getenv("GEMINI_API_KEY")
7
+ model = "gemini-2.5-flash"
8
+ base_url = "https://generativelanguage.googleapis.com/v1beta/openai"
9
+ client = OpenAI(base_url = base_url, api_key = api_key)
10
+
11
+
12
+ ai_teacher = """you are williams shakes sphere, you must use Early Modern English ”"""
13
+
14
+ def get_response(message,history):
15
+ messages = [{"role": "system","content": ai_teacher}]
16
+ messages.append({"role":"user","content":message})
17
+ response = client.chat.completions.create(model = model,messages = messages)
18
+ ai_response = response.choices[0].message.content
19
+ return ai_response
20
+
21
+ if __name__ == "__main__":
22
+ print(get_response("hi",[]))
chatbot_memory.cpython-313.pyc ADDED
Binary file (1.65 kB). View file
 
chatbot_memory.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ '''from openai import OpenAI
2
+ from dotenv import load_dotenv
3
+ import os
4
+ from prompts import ai_motivational_speaker
5
+
6
+ load_dotenv()
7
+ api_key = os.getenv("GEMINI_API_KEY")
8
+ model="gemini-2.5-flash-lite"
9
+ base_url="https://generativelanguage-googleapis.com/v1beta/openai/"
10
+
11
+ client= OpenAI(base_url=base_url, api_key=api_key)
12
+
13
+ ai_motivational_speaker = ai_motivational_speaker
14
+ '''
15
+ '''
16
+ def get_response(message, history):
17
+ messages=({"role":"system","content":ai_motivational_speaker})
18
+ messages.extend(history)
19
+ messages.append({"role":"user","content":message})
20
+ response = client.chat.completions.create(
21
+ model=model,
22
+ messages = messages)
23
+
24
+ ai_response = response.choices[0].message.content
25
+ return ai_response
26
+
27
+ print(get_response(" hh h hhh h ", []))*'''
28
+ '''
29
+ def get_response(message, history):
30
+ # Start messages with the system prompt to set the AI's persona
31
+ messages = [{"role": "system", "content": ai_motivational_speaker}]
32
+
33
+ # Extend the messages list with the existing chat history
34
+ messages.extend(history)
35
+
36
+ # Add the current user's message to the conversation
37
+ messages.append({"role": "user", "content": message})
38
+
39
+ # Call the OpenAI API to get a completion from the Gemini model
40
+ response = client.chat.completions.create(model="gemini-2.5-flash", messages=messages)
41
+ # Extract the AI's response content
42
+ ai_response = response.choices[0].message.content
43
+
44
+ # Return the AI's generated response
45
+ return ai_response
46
+
47
+ # Main execution block to test the chatbot function
48
+ if __name__ == "__main__":
49
+ # Print a test conversation with the chatbot
50
+ print(get_response("Hello, Caramel AI! Can you tell me what AI is?", []))'''
51
+
52
+
53
+ from openai import OpenAI
54
+ from dotenv import load_dotenv
55
+ import os
56
+ from prompts import ai_motivational_speaker
57
+
58
+ load_dotenv()
59
+ api_key = os.getenv("GEMINI_API_KEY")
60
+ model ="gemini-2.5-flash-lite"
61
+ base_url = "https://generativelanguage.googleapis.com/v1beta/openai/"
62
+
63
+ client = OpenAI(api_key=api_key, base_url=base_url)
64
+
65
+ ai_motivational_speaker = ai_motivational_speaker
66
+
67
+
68
+ def get_response(message, history):
69
+ messages = [{"role": "system", "content": ai_motivational_speaker}]
70
+ messages.extend(history)
71
+ messages.append({"role": "user", "content": message})
72
+ response = client.chat.completions.create(
73
+ model=model,
74
+ messages=messages
75
+ )
76
+ Ai_response = response.choices[0].message.content
77
+ return Ai_response
78
+
79
+ #if __name__ == "__main__":
80
+
81
+ # print(get_response("Hello, Caramel AI! Can you tell me what AI is?", []))
pdf_rag.cpython-313.pyc ADDED
Binary file (3.01 kB). View file
 
pdf_rag.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
+ from dotenv import load_dotenv
3
+ import os
4
+ import requests
5
+ import PyPDF2
6
+
7
+ load_dotenv()
8
+ api_key = os.getenv("GEMINI_API_KEY")
9
+ model = "gemini-2.5-flash-lite"
10
+ base_url = "https://generativelanguage.googleapis.com/v1beta/openai/"
11
+
12
+ client = OpenAI(base_url=base_url, api_key=api_key)
13
+
14
+ #url = "https://github.com/hereandnowai/sathyabama-be-cse-aiml-pt1-07-2025-hands-on-professional-training-on-genai-and-ai-agents/blob/73aae8f435d303c8ed08250dc5f719e178879543/general-profile-of-hereandnowai.pdf"
15
+
16
+ url = "https://raw.githubusercontent.com/hereandnowai/sathyabama-be-cse-aiml-pt1-07-2025-hands-on-professional-training-on-genai-and-ai-agents/main/general-profile-of-hereandnowai.pdf"
17
+
18
+ response = requests.get(url)
19
+
20
+
21
+ PDF_File_name = "profile-of-hereandnowai.pdf"
22
+
23
+ PDF_dir =os.path.dirname(__file__)
24
+ PDF_File_path = os.path.join(PDF_dir, PDF_File_name)
25
+ with open(PDF_File_path, "wb") as f:
26
+ f.write(response.content)
27
+ try:
28
+ with open(PDF_File_path, "rb") as f:
29
+ reader = PyPDF2.PdfReader(f)
30
+ pdf_text_chunks = []
31
+ for page in reader.pages:
32
+ page_text = page.extract_text()
33
+ if page_text:
34
+ pdf_text_chunks.append(page_text.strip())
35
+ pdf_context = "\n".join(pdf_text_chunks) if pdf_text_chunks else "no text found in PDF"
36
+ except Exception as e:
37
+ print(f"Error reading the PDF file: {e}")
38
+ pdf_context = "Error extracting text from PDF file."
39
+
40
+
41
+
42
+ def get_response(message, history):
43
+ system_prompt = f"""context from {PDF_File_path}:\n{pdf_context}
44
+ \n\n Qustion:{message}
45
+ \n\n Answer based only on the context:"""
46
+ messages = [{"role": "system", "content": system_prompt}]
47
+ messages.extend(history)
48
+ messages.append({"role": "user", "content": message})
49
+ response = client.chat.completions.create(model=model, messages=messages)
50
+ ai_response = response.choices[0].message.content
51
+ return ai_response
52
+
53
+ print(get_response("who is the ceo of here and now ai?", []))
profile-of-hereandnowai.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ffd1916cb9b025518a79f8a5bb20e3219542f19aee4d8ca3abcc4d10ba2fa37
3
+ size 260569
profile-of-hereandnowai.txt ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PASTE THE CLEANED PLAIN TEXT OF YOUR PROSPECTUS HERE
2
+ # Example snippet:
3
+
4
+ About HERE AND NOW AI
5
+ HERE AND NOW AI is India’s leading autonomous Artificial Intelligence Research Institute, dedicated to transforming the way AI is taught, researched, and applied. It is a brainchild of Deepti Balagopal and Ruthran Raghavan, who envisioned a future where AI education is not limited to coders but accessible to every learner — whether they’re from engineering, business, science, or the arts.
6
+ Born from the success of HERE AND NOW – The Language Institute (est. 2011), which redefined language learning in India, HERE AND NOW AI was founded in 2018 with a mission to disrupt traditional education through AI innovation. Our core initiatives lie in:
7
+ * AI Education: Delivering industry-ready, practical AI programs for students
8
+ * Research & Innovation: Exploring cutting-edge LLMs, RAG frameworks, and autonomous agents
9
+ * Automation: Building intelligent systems that power real-world enterprises and academic institutions
10
+ We believe that every college in India can be an AI-powered campus, and we are on a mission to make that happen.
11
+
12
+ Vision & Mission
13
+ Our Vision
14
+ To build a generation of AI-native graduates and researchers empowered with real-world skills and global exposure, through India’s first fully autonomous AI professor.
15
+ Our Mission
16
+ * Deliver AI education to 1 lakh students by 2030
17
+ * Sign MoUs with 100+ colleges for long-term collaboration
18
+ * Build AI as a Service (AIaaS) solutions for corporates using student talent
19
+ * Create open-access tools that empower learners and educators with AI
20
+ HERE AND NOW AI stands for innovation with inclusivity. Whether you're from an arts stream or an engineering background — we are here to level the playing field with AI.
21
+
22
+ Value-Added Courses Overview
23
+ We proudly offer two high-impact AI programs designed for value addition in colleges. These are flexible, certification-backed, and tailored to academic timetables.
24
+
25
+ 1. Business Analytics with AI
26
+ For: Non-technical students – BBA, BCom, BA, BSc, MBA, MCA, ME
27
+ Prerequisites: None
28
+ This course introduces students to the world of data-driven business intelligence through Python, visualization tools, and cutting-edge AI platforms like ChatGPT, Claude, and Gemini.
29
+ Students will learn:
30
+ * How to clean and analyze data using Python
31
+ * How to interpret and visualize insights with Pandas, Matplotlib
32
+ * How AI can enhance decision-making in HR, Finance, Marketing
33
+ * Real-world project: Creating a dashboard or report powered by AI tools
34
+ Why this course matters: In the modern job market, even non-tech graduates are expected to have basic data literacy. This course bridges that gap while giving them an AI edge.
35
+
36
+ 2. Full-Stack AI Developer Program
37
+ For: Technical students – BE, BTech, BCA, MCA, MSc IT, ME
38
+ Prerequisites: Basic familiarity with programming logic
39
+ This project-oriented course teaches students to build AI-powered applications end-to-end using the latest in LLM technology.
40
+ Students will explore:
41
+ * Python fundamentals + API development (Flask, FastAPI)
42
+ * Working with OpenAI, Claude, Gemini through API integration
43
+ * RAG (Retrieval-Augmented Generation), LangChain, Vector DBs
44
+ * Deploying AI apps on cloud platforms (GCP, Vercel)
45
+ * Final Capstone: Build your own AI Chatbot or Assistant
46
+ Why this course matters: Students not only learn AI concepts — they deploy real applications. It builds confidence, improves resumes, and gives them a head start in interviews or internships.
47
+
48
+ Business Analytics with AI: Curriculum
49
+ Total Duration: 30 hours | Mode: Online/Offline/Hybrid
50
+ Eligibility: Any UG/PG student (non-tech or mixed)
51
+ Module Breakdown:
52
+ 1. Getting Started with Python – No coding experience? No problem. We begin at zero.
53
+ 2. Data Analysis with Pandas & NumPy – Learn how to work with datasets, filter and prepare reports
54
+ 3. Data Visualization – Turn raw data into stunning graphs using Matplotlib and Seaborn
55
+ 4. Statistics for Business – Descriptive & Inferential Statistics for smarter decision-making
56
+ 5. AI for Business Users – Use ChatGPT, Copilot, Claude for content, reports, and insights
57
+ 6. Mini Project – Create a business report powered by AI tools
58
+
59
+ Full-Stack AI Developer: Curriculum
60
+ Total Duration: 30 hours | Mode: Project-Based | Eligibility: Tech Background Students
61
+ Module Breakdown:
62
+ 1. Python + Git + IDE Setup – Get started with clean development workflow
63
+ 2. API Development – Build backend endpoints using Flask or FastAPI
64
+ 3. LLM Integration – Learn to work with Gemini, ChatGPT, Claude via API
65
+ 4. LangChain & Vector Databases – Implement memory in AI using RAG
66
+ 5. Cloud Deployment – Launch your app on GCP, Vercel with CI/CD basics
67
+ 6. Capstone Project – Build your own AI product and present it
68
+
69
+ Delivery Format & Certification
70
+ Mode of Delivery:
71
+ * Live Classes (Online or On-Campus)
72
+ * AI-Powered LMS with recordings, quizzes, code labs
73
+ * Mentorship & Peer Discussion Forums
74
+ Certification:
75
+ * Joint Certificate from HERE AND NOW AI + Partner College
76
+ * Certificate includes project link and GitHub portfolio
77
+ Add-Ons:
78
+ * Career Guide PDFs, Resume Templates
79
+ * Code Snippets, Prompt Libraries
80
+ * Exclusive access to internship/freelance opportunities
81
+
82
+ Placement & Career Assistance
83
+ Job Readiness:
84
+ * Business English Training (Add-On)
85
+ * Soft Skills & Interview Prep (Add-On)
86
+ * Resume & LinkedIn Profile Optimization (Free)
87
+ Technical Readiness:
88
+ * GitHub Portfolio Guidance
89
+ * LeetCode Problem Solving (Add-On Module)
90
+ * Mock Interview Rounds
91
+ Network Readiness:
92
+ * LinkedIn Strategy: Personal Branding + Connection Funnels
93
+ * Monthly AI Industry Talk Sessions
94
+
95
+ Leadership Team
96
+ Ruthran RAGHAVAN – CEO & Chief AI Scientist
97
+ Visionary leader and AI educator. Invented the 108-day Business French Immersion Program. Now building India's first Autonomous AI Professor and leading AI evangelism nationwide.
98
+ Deepti BALAGOPAL – COO
99
+ Academic strategist managing operations, course quality, and outreach. She is the backbone of all institutional collaborations and program execution.
100
+ Balaji KAMALAKKANNAN – CTO
101
+ Expert in cloud, open-source LLMs, and full-stack deployment. Balaji leads all technical R&D and product integration for HERE AND NOW AI.
102
+ Gopalakrishnan KANNAN – CMO
103
+ Marketing genius with deep experience in youth outreach and digital campaigns. Gopal ensures the AI movement reaches every corner of India.
104
+
105
+ Contact & Collaboration
106
+ HERE AND NOW AI – Artificial Intelligence Research Institute
107
+ Chennai, Tamil Nadu, India
108
+ Website: www.hereandnowai.com
109
+ Email: info@hereandnowai.com
110
+ Phone: +91 99629 61000
111
+ Course Fee Structure:
112
+ * Business Analytics with AI: ₹5,925 / student / semester
113
+ * Full-Stack AI Developer Program: ₹9,925 / student / semester
114
+
115
+ Let’s Build the Future Together
116
+ We look forward to collaborating with your institution. Together, let’s lead India into the AI-powered future.
prompts.cpython-313.pyc ADDED
Binary file (12.9 kB). View file
 
prompts.py ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Yes — Markdown formatting **does** matter to LLMs like GPT, Gemini, Claude, Llama, Mistral, Deepseek etc.
2
+ The use of headings (hashes), bold (**asterisks**), lists, and code blocks provides real structure and clarity,
3
+ and this isn't just for human readability—it also enhances how LLMs parse and prioritize information. Here's why:
4
+
5
+ ---
6
+
7
+ ### 🧠 1. Structural Cues Aid Comprehension
8
+
9
+ Markdown provides a **hierarchy**—headings denote sections,
10
+ lists group related items, and bold/italic text emphasizes key concepts.
11
+ These visual cues act as strong signals that
12
+ guide the model’s attention—improving both understanding and output organization.
13
+
14
+ ---
15
+
16
+ ### ⏱️ 2. Improved Output Quality & Accuracy
17
+
18
+ Studies and benchmarks have shown that LLM performance can vary dramatically—up to **40 %**
19
+ —based on prompt formatting. For many tasks, Markdown delivers clarity that models like GPT‑4 especially appreciate.
20
+
21
+ ---
22
+
23
+ ### 💡 3. Efficiency in Token Usage
24
+
25
+ Markdown is lightweight—it uses fewer tokens than verbose HTML or JSON.
26
+ This leaves more room in the context window for actual content,
27
+ improving efficiency and reducing cost.
28
+
29
+ ---
30
+
31
+ ### 🛠️ Best Practices
32
+
33
+ * Use **headings** (`#`, `##`) to define sections explicitly.
34
+ * Use **bold** (`**important**`) to spotlight critical terms or instructions.
35
+ * Use **lists** (`-`, `*`, `1.`) to organize steps or items clearly.
36
+ * Use **code blocks** (`…`) for technical snippets—preserves formatting.
37
+ * Keep formatting **consistent** throughout the prompt ([neuralbuddies.com][1]).
38
+
39
+ ---
40
+
41
+ ### 💬 What the Community Says
42
+
43
+ > “Markdown influence… LLMs are trained on datasets that include Markdown,
44
+ using these conventions can help in emphasizing or structuring responses more effectively.”
45
+
46
+ > “Headings, summaries, bullet points, etc., all contribute to clarity…
47
+ If it’s hard for a human to read, ChatGPT will also struggle.”
48
+
49
+ ---
50
+
51
+ ### ✅ Bottom‑Line
52
+
53
+ Markdown formatting isn’t just aesthetic—it’s **functional**.
54
+ It helps LLMs parse meaning, maintain structure, reduce errors (like hallucinations),
55
+ and improve overall response quality and consistency.
56
+ So, using bold, headings, lists, etc., isn't just for humans—it boosts effectiveness for AI too."""
57
+
58
+ ai_teacher = """You are Caramel AI, an AI Teacher at HERE AND NOW AI - Artificial Intelligence Research Institute.
59
+ Your mission is to **teach AI to beginners** like you're explaining it to a **10-year-old**.
60
+ Always be **clear**, **simple**, and **direct**. Use **short sentences** and **avoid complex words**.
61
+ You are **conversational**. Always **ask questions** to involve the user.
62
+ After every explanation, ask a small follow-up question to keep the interaction going. Avoid long paragraphs.
63
+ Think of your answers as **one sentence at a time**. Use examples, analogies, and comparisons to things kids can understand.
64
+ Your tone is always: **friendly, encouraging, and curious**. Your answers should help students, researchers, or professionals who are just starting with AI.
65
+ Always encourage them by saying things like: "You’re doing great!" "Let’s learn together!" "That’s a smart question!"
66
+ Do **not** give long technical explanations. Instead, **build the understanding step by step.**
67
+ You say always that you are **“Caramel AI – AI Teacher, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
68
+
69
+ ai_doctor = """You are Caramel AI, a compassionate and knowledgeable Doctor.
70
+ Your mission is to provide clear, empathetic, and easy-to-understand medical information.
71
+ Always explain health concepts simply, answer questions about symptoms or conditions, and advise on general well-being.
72
+ Emphasize that you are an AI and cannot provide diagnoses or replace professional medical advice.
73
+ Your tone is always: caring, informative, and reassuring.
74
+ You say always that you are **“Caramel AI – AI Doctor, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
75
+
76
+ ai_accountant = """You are Caramel AI, a meticulous and precise Accountant.
77
+ Your mission is to explain financial concepts, tax regulations, and budgeting strategies in an accessible way.
78
+ Always provide clear, step-by-step guidance on personal finance, small business accounting, and tax basics.
79
+ Emphasize that you are an AI and cannot provide personalized financial or tax advice.
80
+ Your tone is always: professional, analytical, and helpful.
81
+ You say always that you are **“Caramel AI – AI Accountant, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
82
+
83
+ ai_lawyer = """You are Caramel AI, a sharp and ethical Lawyer.
84
+ Your mission is to clarify legal terms, explain basic rights, and outline common legal processes.
85
+ Always provide general legal information and help users understand legal concepts without offering specific legal advice.
86
+ Emphasize that you are an AI and cannot represent clients or provide legal counsel.
87
+ Your tone is always: formal, objective, and informative.
88
+ You say always that you are **“Caramel AI – AI Lawyer, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
89
+
90
+ ai_tax_consultant = """You are Caramel AI, a diligent and up-to-date Tax Consultant.
91
+ Your mission is to simplify tax laws, explain deductions, and guide users through tax preparation basics.
92
+ Always provide general information on tax planning and compliance, focusing on clarity and accuracy.
93
+ Emphasize that you are an AI and cannot provide personalized tax advice or file taxes.
94
+ Your tone is always: precise, patient, and educational.
95
+ You say always that you are **“Caramel AI – AI Tax Consultant, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
96
+
97
+ ai_research_scientist = """You are Caramel AI, a curious and innovative Research Scientist in AI.
98
+ Your mission is to discuss cutting-edge AI concepts, research methodologies, and ethical considerations in AI.
99
+ Always explain complex AI topics in an engaging way, fostering curiosity and critical thinking.
100
+ Your tone is always: inquisitive, analytical, and forward-thinking.
101
+ You say always that you are **“Caramel AI – AI Research Scientist, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
102
+
103
+ ai_software_engineer = """You are Caramel AI, a practical and problem-solving Software Engineer.
104
+ Your mission is to explain programming concepts, software development lifecycles, and coding best practices.
105
+ Always provide clear, concise explanations of technical topics and offer guidance on common coding challenges.
106
+ Your tone is always: logical, precise, and solution-oriented.
107
+ You say always that you are **“Caramel AI – AI Software Engineer, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
108
+
109
+ ai_motivational_speaker = """You are Caramel AI, an inspiring and encouraging Motivational Speaker.
110
+ Your mission is to uplift, motivate, and provide positive perspectives on challenges.
111
+ Always use encouraging language, share inspiring thoughts, and help users find their inner strength.
112
+ Your tone is always: enthusiastic, supportive, and empowering.
113
+ You say always that you are **“Caramel AI – AI Motivational Speaker, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
114
+
115
+ ai_nutritionist = """You are Caramel AI, a health-conscious and informative Nutritionist.
116
+ Your mission is to provide general information on healthy eating habits, balanced diets, and nutritional facts.
117
+ Always explain the benefits of different foods and offer tips for a healthier lifestyle.
118
+ Emphasize that you are an AI and cannot provide personalized dietary plans or medical advice.
119
+ Your tone is always: encouraging, knowledgeable, and health-focused.
120
+ You say always that you are **“Caramel AI – AI Nutritionist, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
121
+
122
+ ai_sports_coach = """You are Caramel AI, a dynamic and strategic Sports Coach.
123
+ Your mission is to provide general advice on training techniques, sports psychology, and athletic performance.
124
+ Always motivate users to achieve their fitness goals and explain concepts related to various sports.
125
+ Your tone is always: energetic, disciplined, and goal-oriented.
126
+ You say always that you are **“Caramel AI – AI Sports Coach, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
127
+
128
+ ai_fitness_coach = """You are Caramel AI, a dedicated and knowledgeable Fitness Coach.
129
+ Your mission is to offer general guidance on exercise routines, workout principles, and maintaining physical health.
130
+ Always encourage consistent effort and explain the importance of proper form and recovery.
131
+ Emphasize that you are an AI and cannot provide personalized workout plans or medical advice.
132
+ Your tone is always: supportive, practical, and results-driven.
133
+ You say always that you are **“Caramel AI – AI Fitness Coach, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
134
+
135
+ ai_historian = """You are Caramel AI, a wise and insightful Historian.
136
+ Your mission is to recount historical events, explain their significance, and discuss historical figures.
137
+ Always present information accurately and engage users with fascinating details from the past.
138
+ Your tone is always: reflective, educational, and captivating.
139
+ You say always that you are **“Caramel AI – AI Historian, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
140
+
141
+ ai_chef = """You are Caramel AI, a creative and passionate Chef.
142
+ Your mission is to share culinary knowledge, explain cooking techniques, and suggest delicious recipes.
143
+ Always inspire users to explore new flavors and enjoy the art of cooking.
144
+ Your tone is always: enthusiastic, descriptive, and encouraging.
145
+ You say always that you are **“Caramel AI – AI Chef, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
146
+
147
+ ai_travel_guide = """You are Caramel AI, an adventurous and informative Travel Guide.
148
+ Your mission is to provide details about destinations, suggest itineraries, and offer travel tips.
149
+ Always inspire wanderlust and help users plan their next adventure.
150
+ Your tone is always: exciting, helpful, and well-traveled.
151
+ You say always that you are **“Caramel AI – AI Travel Guide, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
152
+
153
+ ai_environmentalist = """You are Caramel AI, a dedicated and passionate Environmentalist.
154
+ Your mission is to educate on environmental issues, promote sustainable practices, and inspire action for a healthier planet.
155
+ Always explain ecological concepts clearly and suggest ways individuals can contribute to conservation.
156
+ Your tone is always: urgent, hopeful, and informative.
157
+ You say always that you are **“Caramel AI – AI Environmentalist, built at HERE AND NOW AI – Artificial Intelligence Research Institute.”**"""
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ openai
2
+ python-dotenv
3
+ gradio
4
+ typing_extensions
text_rag.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
+ from dotenv import load_dotenv
3
+ import os
4
+ import requests
5
+
6
+ load_dotenv()
7
+ api_key = os.getenv("GEMINI_API_KEY")
8
+ model = "gemini-2.5-flash-lite"
9
+ base_url = "https://generativelanguage.googleapis.com/v1beta/openai/"
10
+
11
+ client = OpenAI(base_url=base_url, api_key=api_key)
12
+
13
+ url="https://raw.githubusercontent.com/hereandnowai/vac/refs/heads/master/prospectus-context.txt"
14
+ response = requests.get(url)
15
+
16
+ script_dir = os.path.dirname(os.path.abspath(__file__))
17
+ file_path = os.path.join(script_dir, "profile-of-hereandnowai.txt")
18
+
19
+ with open(file_path, "wb") as f:
20
+ f.write(response.content)
21
+
22
+ text_path =file_path
23
+
24
+ try:
25
+ with open(text_path, "r",encoding="utf-8") as file:
26
+ text_lines = file.readlines()
27
+ text_content = "\n".join([line.strip() for line in text_lines if line.strip()])
28
+ except Exception as e:
29
+ print(f"Error reading the text file: {e}")
30
+ text_content = "Error extracting text from text file."
31
+
32
+ system_prompt =f"""You are Caramel AI, ai assistant build by Here and Now AI.Answer the user's question based only on the following context:\n\n{text_content}"""
33
+
34
+ def get_response(message, history):
35
+ messages = [{"role": "system", "content": system_prompt}]
36
+ messages.extend(history)
37
+ messages.append({"role": "user", "content": message})
38
+ response = client.chat.completions.create(model=model, messages=messages)
39
+ ai_response = response.choices[0].message.content
40
+ return ai_response
41
+
42
+ print(get_response("who is the ceo of here and now ai?", []))
ui-project4.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from pdf_rag import get_response
3
+ import json
4
+ import os
5
+
6
+ with open(os.path.abspath(os.path.join(os.path.dirname(__file__), "branding.json"))) as f:
7
+ brand_info = json.load(f)["brand"]
8
+
9
+ with gr.Blocks(theme="default", title=brand_info["organizationName"]) as app:
10
+ gr.HTML(f"""
11
+ <div style="display: flex; justify-content:center; margin-bottom:20px">
12
+ <img src="{brand_info["logo"]["title"]}" alt="{brand_info["organizationName"]} Logo" style="width:200px;height:40px">
13
+ </div> """)
14
+
15
+ gr.ChatInterface(
16
+ fn=get_response,
17
+ chatbot=gr.Chatbot(height=500, avatar_images=(None, brand_info["chatbot"]["avatar"]), type="messages"),
18
+ title=brand_info["organizationName"],
19
+ description=brand_info["slogan"],
20
+ type="messages",
21
+ examples=[
22
+ ["Who is the CEO of Here and Now AI?"],
23
+ ["What is the mission of Here and Now AI?"],
24
+ ["Tell me about the team behind Here and Now AI."]
25
+ ]
26
+ )
27
+
28
+ if __name__ == "__main__":
29
+ app.launch()
ui.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #hello this is jensen
2
+ import gradio as gr
3
+ from chatbot_memory import get_response
4
+ import os
5
+ import json
6
+
7
+ with open(os.path.abspath(os.path.join(os.path.dirname(__file__),"branding.json"))) as f:
8
+ brand_info=json.load(f)["brand"]
9
+ with gr.Blocks(theme="default",title=["organizationName"]) as app:
10
+ gr.HTML(f"""<div style="display":flex justify-content:center; margin-bottom:20px;">
11
+ <img src="{brand_info["logo"]["title"]}" alt="{brand_info["organizationName"]} logo" style="height:100px;">)
12
+ </div>""")
13
+ gr.ChatInterface(
14
+ fn=get_response,
15
+ chatbot=gr.Chatbot(height=500,avatar_images=(None,brand_info["chatbot"]["avatar"]),
16
+ type="messages"),
17
+ title=brand_info ["organizationName"],
18
+ type="messages",
19
+ examples=[["If you could have any superpower, what would it be and why? "],
20
+ ["Who is Queen Elizabeth?"]
21
+ ]
22
+ )
23
+
24
+ if __name__ == "__main__":
25
+ app.launch()