# Samba Copilot : Agent Storm Generator ! #lightning\_hackathon

**URL:** <https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690>\
**Category:** Showcase\
**Tags:** dev\
**Created:** [November 25, 2024, 4:25pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690 "2024-11-25T16:25:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhilswami1](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/nikhilswami1/32/559_2.png) [@nikhilswami1](https://community.sambanova.ai/u/nikhilswami1)\
**Post date:** [November 25, 2024, 4:25pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/1 "2024-11-25T16:25:07Z")

</div>

![Banner](https://us1.discourse-cdn.com/sambanova/original/2X/2/2fc4df1c5effe063fc6b72789cf18825c20df3e0.jpeg)

# Samba Copilot : Agent Storm Generator

[🎥Watch Video Demo](https://youtu.be/ZITFUoB8b-k)

This Copilot is highly customizable multi purpose widget with agentic capabilities, which assists user as they speak and press send button, mimicing iron-man jarvis style. can read dozens of documents (10000 words per second), and give you high level overview. can use Web or your personal notes!

It can be used for a variety of tasks such as

- Note Taker/Maker, with speech to text
- meme explainer, OCR image to text
- document analysis, presentations exporter
- realtime online conference support,
- content writing, translation, quick web research

> to keep this list small, what you can do with a mouth, eyes, hands and secondary brain, you can do with this copilot.

Currently a hackathon proof of concept, but can be extended to a full fledged product. please open issue and tell us what you do, we will add functionality carefully so it may benefit people who do same task as you!

Features a plug-n-play architecture with many batteries included so a user can easily add or remove features as per their needs (you can keep as light or as heavy).

- BYOM : Bring your own model / finetune
- BYOT : Bring your own tools (Agent)
- BYOC : Bring your own context / data
- BYOP : Bring your own prompt / template

# Gallery

 ![Banner](https://us1.discourse-cdn.com/sambanova/original/2X/c/c2621a71f39a238deb37e905974c77ed6aa10421.png)  
 ![Banner](https://us1.discourse-cdn.com/sambanova/original/2X/e/e435993389287dae9e6b5f7f1a8979b410d2d0e4.jpeg)

## Quick Start

### Option 1 : Standard

first clone repo to a folder:

```auto
git clone https://github.com/nikhil-swamix/sambanova-copilot.git
cd sambanova-copilot
pip install -r requirements.txt
python copilot.py

```

Try to directly run the run\_\_.ps1 or .sh. here \_ is platform. it will install dependencies and run the app. run 2 times if it fails the first time, (troubleshoot tip).

### Option 2 : Easiest (windows):

[download fow win](https://github.com/nikhil-swamix/sambanova-copilot/releases)  
Go to releases section and download the executable, and double click!

### Option 3 : Preferred (poetry):

[Get Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer)

```auto
# Cd to directory after git clone
git clone https://github.com/nikhil-swamix/sambanova-copilot.git
cd sambanova-copilot
poetry install
poetry run python copilot.py

```

A great care has been taken to make it distributable and easy to use, please open issue in repo if any encountered.

## Requirements

make sure you have SAMBANOVA\_API\_KEY, GROQ\_API\_KEY , configured in .env , some keys are provided.

* * *

# How it works

## Frontend

 ![Flowchart](https://us1.discourse-cdn.com/sambanova/original/2X/4/4dc2098d0359684f19a655e8f44c31468dcba50b.jpeg)

## Backend

 ![Flowchart](https://us1.discourse-cdn.com/sambanova/original/2X/2/29f7ab5bd477c7b9368ac35daede25cc745a9449.png)

* * *

# SambaNova Copilot Guide

## How to Use

- Press 1 (🎤) - Start/stop voice recording
- Press 2 (📸) - Capture current screen
- Press 3 (🤖) - Send to AI for processing, it will show response in dedicated popup
- Press 4 (⌨) - Auto-type response (100 chars/sec)
- Toggle Clipboard - Use copied text as additional context
- Toggle Workspace - Reference local documents
- Toggle Web Search - Include internet results
- Reset (🔄) - Clear current session data

## Example Use Cases (can extend with plugins)

- Code Review: Screenshot code + voice ask “explain this code”
- Meeting Notes: Record conversations for instant transcription and summary
- Meme Explainer: Capture meme image + ask for cultural context
- Document Analysis: Screenshot text + ask for key points summary
- Technical Support: Capture error screen + ask for solutions
- Content/Blog Writing: Dictate rough ideas for AI enhancement
- Translation Helper: Record foreign language for translation and tips
- Quick Research: Combine clipboard articles + voice questions
- UI/UX Review: Screenshot designs for instant feedback
- Email Assistant (with plugin): Dictate main points for professional email drafts

Pro Tip: Combine voice + image + clipboard for best results

## Useful Features

 ![Example Meme](https://us1.discourse-cdn.com/sambanova/original/2X/1/15b0d099a169ed77ce0431123c2e2a37e7cd6fd7.jpeg)

- generate executive reports after scanning few webpages, Save Generated content to PDF/Markdown (artifacts)
- Does not require API for web search, use local browser for free search! (msedge, chrome, firefox) !
- Can use local documents as context for better results
- Can use clipboard text as additional context
- Can use voice recording as primary instruction.
- Automatic Tool Decision Based on user query (Agentic/Smart Mode) (Experimental, please comment out code if any issue)

# Highlights

 ![Example Meme](https://us1.discourse-cdn.com/sambanova/original/2X/5/528cf3b6efc19fefad23a5b977b535be2a7bfb81.jpeg)

> **Configuration help**
>
> KEYS\_WILL\_BE\_DELETED\_POST\_HACKATHON\_DATE recommended to get your own keys, these keys are in .env file
> 
> ##### SAMBANOVA\_API\_KEY\_HELP
> 
> ```
> https://cloud.sambanova.ai/apis
> 
> ```
> 
> ##### GROQ\_API\_KEY\_HELP
> 
> ```
> Used for text to speech
> https://console.groq.com/keys
> 
> ```
> 
> ##### VOYAGE\_API\_KEY\_HELP
> 
> ```
> https://dash.voyageai.com/api-keys
> 
> ```
> 
> ##### WORKSPACE\_DIR\_HELP

## Upcoming

- Reasoning mode (some challenge with llama to act as thinker, in progress)
- Save history and submit to SambaStudio finetune job so model just “gets it”
- ui based prompt editor , add remove rules in system prompt on the fly
- Share json backed OPEN API compatible Workflows using “SambaHub” maybe.

# (un)Known Issues

- Please open issues if any encountered. will be added and try to resolve.

---

<div class="post-metadata">

**Author:** ![venkatfollowsrossi00](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/venkatfollowsrossi00/32/1360_2.png) [@venkatfollowsrossi00](https://community.sambanova.ai/u/venkatfollowsrossi00)\
**Post date:** [November 25, 2024, 4:58pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/2 "2024-11-25T16:58:47Z")

</div>

clean and neat. 🚀🚀🚀🚀

---

<div class="post-metadata">

**Author:** ![robert.oschler](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/robert.oschler/32/837_2.png) [@robert.oschler](https://community.sambanova.ai/u/robert.oschler)\
**Post date:** [November 25, 2024, 5:44pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/3 "2024-11-25T17:44:31Z")

</div>

I think you need to add the following hash tag to your post title:

#lightning\_hackathon

---

<div class="post-metadata">

**Author:** ![nikhilswami1](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/nikhilswami1/32/559_2.png) [@nikhilswami1](https://community.sambanova.ai/u/nikhilswami1)\
**Post date:** [November 26, 2024, 2:19am UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/4 "2024-11-26T02:19:57Z")

</div>

thank you for the recommendation robert!

---

<div class="post-metadata">

**Author:** ![rohanmatam2011](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/rohanmatam2011/32/791_2.png) [@rohanmatam2011](https://community.sambanova.ai/u/rohanmatam2011)\
**Post date:** [November 26, 2024, 1:34pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/5 "2024-11-26T13:34:49Z")

</div>

looks interesting. keep it up.

---

<div class="post-metadata">

**Author:** ![prafull.thokal](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/prafull.thokal/32/20_2.png) [@prafull.thokal](https://community.sambanova.ai/u/prafull.thokal)\
**Post date:** [November 27, 2024, 4:54pm UTC](https://community.sambanova.ai/t/samba-copilot-agent-storm-generator-lightning-hackathon/690/6 "2024-11-27T16:54:03Z")

</div>

@nikhilswami1 Incredible concept! The versatility of SambaNova Copilot is impressive—voice recognition, document analysis, meme explaining, and more in one tool. I love the ‘Bring Your Own’ feature set, making it highly customizable. Excited to see this evolve from a proof of concept to a full-fledged product. Great work!
