Skip to content

rakinmohammedrafeeq/solvia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solvia – Text Cleaning & Transformation Tool

Open in Streamlit

Solvia is a Streamlit-based text-cleaning and transformation tool powered by llama-3.1-8b-instant via the Groq API.
It allows you to remove unwanted phrases, clean messy text, ask context-aware questions, and rephrase or summarize content with precision.


Features

  • Custom Removal Rules – Add specific phrases that should be removed from text
  • Instant Text Cleaning – Clean large text blocks using your custom rule list
  • Context-Aware Q&A – Ask questions using only the cleaned text as context
  • Rephrase / Summarize – Transform cleaned text into clearer or shorter versions
  • Session Reset – Quickly clear rules and start a fresh cleaning session
  • Groq API Integration – Powered by Groq’s lightning-fast llama-3.1-8b-instant model
  • Streamlit UI – Clean, modern, responsive interface

Live Demo

Try Solvia instantly – Launch the Streamlit App


Technologies Used

  • Python 3.x
  • Streamlit – Web-based UI
  • Groq API (llama-3.1-8b-instant) – Text processing and transformation
  • Requests – API communication
  • JSON – Stores custom removal rules
  • dotenv – Optional environment variable loading

File Structure

Solvia/
│
├── solvia.py               # Main Streamlit application (UI + Groq API + text cleaning + AI tools)
├── remove_list.json        # Stores user-defined removal phrases (persistent rule list)
│
├── requirements.txt        # Python dependencies for Solvia
├── README.md               # Documentation and setup guide
├── LICENSE                 # MIT License
├── SECURITY.md             # Security policy and reporting guidelines
│
├── .gitignore              # Files ignored by Git
├── .gitattributes          # Git attributes configuration
│
└── .devcontainer/          # Dev Container configuration (for VS Code)
    └── devcontainer.json

Requirements

  • Python 3.8+
  • streamlit
  • requests
  • python-dotenv
  • Groq API key (GROQ_API_KEY)

Install dependencies:

pip install -r requirements.txt

Installation & Usage

  1. Clone the repository:

    git clone https://github.com/rakinmohammedrafeeq/solvia
    cd solvia
  2. Add Groq API key:

Create .streamlit/secrets.toml and add:

GROQ_API_KEY = "your_api_key_here"

If .streamlit/secrets.toml is not present, Solvia automatically falls back to reading the key from a .env file.

  1. Run Solvia:
streamlit run solvia.py

How It Works

  • Rule-Based Cleaning
    Add phrases to a removal list. Solvia removes them exactly as written.

  • Text Cleaning
    Paste text into the input box and instantly generate a cleaned version.

  • Q&A
    Solvia answers questions using only the cleaned text as its source.

  • Text Transformation
    Choose between Rephrase or Summarize modes to rewrite your cleaned content using Groq LLM.


Security Policy

For the complete security policy, refer to SECURITY.md.
It outlines:

  • Supported versions
  • Responsible disclosure guidelines
  • Private reporting process
  • Required information when reporting vulnerabilities
  • Response timelines

License

This project is licensed under the MIT License.


Contact

For any questions or suggestions, feel free to reach out:


Support

If you find this project useful, consider giving it a ⭐ on GitHub or supporting my work:

Buy Me a Coffee

About

Solvia: A Streamlit-based text-cleaning and transformation tool powered by Groq’s Llama 3.1 8B model, built to remove unwanted phrases, clean messy text, and provide context-aware Q&A, rephrasing, and summarization.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors

Languages