Skip to content

sospeter-57/fmarer-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fmarer-agent

File Summarizer Agent

A CLI AI agent that summarizes any text file and lets you ask questions about it. Built with LangChain + Groq (Mixtral).

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set your Groq API key:
export GROQ_API_KEY=your_key_here

Get a free key at https://console.groq.com

Usage

python summarizer.py path/to/your/file.txt

The agent will:

  1. Load and read the file
  2. Automatically generate a summary
  3. Drop into a Q&A loop where you can ask anything about the file

Example

python summarizer.py notes.txt

Reading: notes.txt
File loaded (2400 characters)

==================================================
SUMMARY
==================================================
The document covers...

==================================================
Ask questions about the file (type 'exit' to quit)
==================================================

You: What are the main points?
Agent: ...

You: exit
Bye!

Supported files

Any plain text file — .txt, .md, .csv, .py, .go, etc.

About

A CLI AI agent that summarizes any text file and lets you ask questions about it. Built with LangChain + Groq (Mixtral).

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages