Skip to content

Instantly share code, notes, and snippets.

View KaushikShresth07's full-sized avatar

Kaushik Shresth KaushikShresth07

View GitHub Profile

J.A.R.V.I.S - Just A Rather Very Intelligent System

An intelligent AI assistant built with FastAPI, LangChain, and Groq AI. JARVIS provides two modes of interaction: General Chat (pure LLM, no web search) and Realtime Chat (with Tavily web search). The system learns from user data files and past conversations, maintaining context across sessions.

🚀 Quick Start

Prerequisites

  • Python 3.8+ with pip
  • Operating System: Windows, macOS, or Linux (fully cross-platform)
# User Profile and Background
User Name: Shreshth Kaushik
Role: AI System Developer and Entrepreneur
Interests: AI, Machine Learning, Software Engineering, Innovation, Tech Entrepreneurship
Skills: Python, JavaScript, Node.js, FastAPI, LangChain, AI/ML, System Design
# Professional Background
- Developer: Actively working on AI-powered systems and applications
You are interacting with Shreshth Kaushik, a 21-year-old online educator, businessman, and programmer.
Shreshth is known for simplifying complex topics using innovative and practical teaching methods. His approach focuses on making learning easy, hands-on, and enjoyable, even for beginners. He values clarity, real-world applications, and logical explanations over theory-heavy or dramatic responses.
His primary goal is to help people turn knowledge into real-world skills and confidence. When responding to him, prioritize:
Clear and structured explanations
Practical examples and implementation-focused guidance
def print_title():
"""Print the J.A.R.V.I.S ASCII art title."""
title = """
╔══════════════════════════════════════════════════════════╗
║ ║
║ ██╗ █████╗ ██████╗ ██╗ ██╗██╗███████╗ ║
║ ██║██╔══██╗██╔══██╗██║ ██║██║██╔════╝ ║
║ ██║███████║██████╔╝██║ ██║██║███████╗ ║
║ ██ ██║██╔══██║██╔══██╗╚██╗ ██╔╝██║╚════██║ ║
"""
JARVIS TEST SCRIPT - General and Realtime Chat Selector
========================================================
PURPOSE:
This is a command-line test interface for interacting with J.A.R.V.I.S.
It allows you to switch between general chat (pure LLM, no web search) and realtime chat
(with Tavily web search) modes. Both modes share the same session ID, allowing
seamless conversation switching.
"""
CONFIGURATION MODULE
====================
PURPOSE:
Central place for all J.A.R.V.I.S settings: API keys, paths, model names,
and the Jarvis system prompt. Designed for single-user use: each person runs
their own copy of this backend with their own .env and database/ folder.
WHAT THIS FILE DOES:
#!/usr/bin/env python3
"""
Enhanced HuskyLens Interactive Example
Comprehensive interactive menu for testing all HuskyLens features
"""
import random
import time
import json
import sys
# HuskyLens Python Library - Advanced Enhanced Version
# Author: Robert Prast (robert@dfrobot.com)
# Enhanced with: Advanced error handling, retry mechanisms, input validation, health checks
# 08/03/2020 (Original) | Advanced Enhanced 2024
# Dependencies:
# pyserial
# smbus or smbus2
# pypng
#
# How to use:
responses = [
"The rest of the result has been printed to the chat screen, kindly check it out sir.",
"The rest of the text is now on the chat screen, sir, please check it.",
"You can see the rest of the text on the chat screen, sir.",
"The remaining part of the text is now on the chat screen, sir.",
"Sir, you'll find more text on the chat screen for you to see.",
"The rest of the answer is now on the chat screen, sir.",
"Sir, please look at the chat screen, the rest of the answer is there.",
"You'll find the complete answer on the chat screen, sir.",
"The next part of the text is on the chat screen, sir.",
HtmlCode = '''<!DOCTYPE html>
<html lang="en">
<head>
<title>Speech Recognition</title>
</head>
<body>
<button id="start" onclick="startRecognition()">Start Recognition</button>
<button id="end" onclick="stopRecognition()">Stop Recognition</button>
<p id="output"></p>
<script>