npcJensen commited on
Commit
098098d
Β·
verified Β·
1 Parent(s): 30208d4

Upload 5 files

Browse files
Files changed (5) hide show
  1. app.py +30 -0
  2. branding.json +26 -0
  3. profile-of-hereandnowai.txt +116 -0
  4. requirements.txt +3 -0
  5. text_rag.py +42 -0
app.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from text_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 rag_bot:
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
+
29
+ if __name__ == "__main__":
30
+ rag_bot.launch()
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
+ }
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.
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ openai
2
+ python-dotenv
3
+ gradio
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?", []))