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.
- 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
Try Solvia instantly – Launch the Streamlit App
- 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
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
- Python 3.8+
streamlitrequestspython-dotenv- Groq API key (
GROQ_API_KEY)
Install dependencies:
pip install -r requirements.txt-
Clone the repository:
git clone https://github.com/rakinmohammedrafeeq/solvia cd solvia -
Add Groq API key:
Create .streamlit/secrets.toml and add:
GROQ_API_KEY = "your_api_key_here"If
.streamlit/secrets.tomlis not present, Solvia automatically falls back to reading the key from a.envfile.
- Run Solvia:
streamlit run solvia.py-
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.
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
This project is licensed under the MIT License.
For any questions or suggestions, feel free to reach out:
- Email: rakinmohammedrafeeq@gmail.com
- LinkedIn: https://www.linkedin.com/in/rakinmohammedrafeeq
- GitHub: https://github.com/rakinmohammedrafeeq
If you find this project useful, consider giving it a ⭐ on GitHub or supporting my work: