Skip to content

Saket22-CS/Gemini-AI-Assistant-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Gemini AI Assistant (Command-Line)

An intelligent command-line assistant powered by Google's Gemini-Pro API, designed to interact using prompt engineering principles. Built to answer questions, summarize text, create stories or poems, and provide actionable advice — all from your terminal!

🔗 🎥 Demo Video


🚀 Features

  • 🔍 Answer Factual Questions – Instantly retrieve answers from the Gemini AI model.
  • 📚 Text Summarization – Get concise summaries of long paragraphs or articles.
  • Creative Content Generation – Write poems, stories, or novel ideas with style.
  • 💡 Advice & Tips – Study hacks, stress management, time organization — just ask!
  • 📥 User Feedback Logger – Logs all prompts, AI responses, and user feedback into feedback_log.txt.

💻 Tech Stack


🛠️ Setup Instructions

1. Clone the Repository

git clone https://github.com/your-username/Gemini-AI-Assistant-CLI.git
cd Gemini-AI-Assistant-CLI

2. Install Dependencies

pip install -r requirements.txt

3. Configure Environment

Create a .env file in the root directory and add your API key:

GEMINI_API_KEY=your_gemini_api_key_here

Get your key from 👉 https://aistudio.google.com/app/apikey

4. Run the Assistant

python assistant.py

🧠 Prompt Categories & Variations

Category Prompt Example
Q&A “What is gravity?”
Summarize “Summarize: [text]”
Creative “Write a poem about courage.”
Advice “Give study tips for exams.”

You can choose from suggested prompts or enter your own custom query.


📂 Project Structure

Gemini-AI-Assistant-CLI/
├── assistant.py
├── .env                # Not tracked in Git
├── feedback_log.txt    # All AI responses + feedback
├── requirements.txt
├── .gitignore
└── README.md

📄 Feedback Logging Format

Every interaction is saved:

=== New Interaction ===
Category     : summarize
User Prompt  : Summarize the following paragraph...
AI Response  : The main idea is...
Feedback     : yes

✍️ Author

Saket Chaudhary 🔗 LinkedIn 📧 saketrishu64821@gmail.com


📌 License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages