Skip to main content

A new package that processes user queries about why small voting or ranking projects get flagged as spam so easily. It uses natural language processing to understand the input and generates a structur

Project description

Vote Clarify

PyPI version License: MIT Downloads LinkedIn

A package for processing user queries about why small voting or ranking projects get flagged as spam so easily.

Overview

This package uses natural language processing to understand the input and generates a structured response with insights and potential solutions. It leverages the capabilities of llmatch-messages to ensure the response is consistent and formatted correctly, making it easier for users to understand the issue and find solutions.

Installation

pip install voteclarify

Usage

from voteclarify import voteclarify

user_input = "My small voting project gets flagged as spam, why?"
response = voteclarify(user_input)
print(response)

You can pass additional parameters to customize the behavior:

from voteclarify import voteclarify
from langchain_core.language_models import BaseChatModel
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_llm7 import ChatLLM7
from langchain_openai import ChatOpenAI

user_input = "My small voting project gets flagged as spam, why?"
llm = ChatOpenAI()
response = voteclarify(user_input, llm=llm)
print(response)

You can also use your own LLM instance, for example:

from voteclarify import voteclarify
from langchain_openai import ChatOpenAI

user_input = "My small voting project gets flagged as spam, why?"
llm = ChatOpenAI()
response = voteclarify(user_input, llm=llm)
print(response)

Or use the Anthropic or Google Generative AI:

from voteclarify import voteclarify
from langchain_anthropic import ChatAnthropic
from langchain_google_genai import ChatGoogleGenerativeAI

user_input = "My small voting project gets flagged as spam, why?"
llm = ChatAnthropic()
response = voteclarify(user_input, llm=llm)
print(response)

API Key

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits, you can pass your own API key via environment variable LLM7_API_KEY or via passing it directly:

from voteclarify import voteclarify

user_input = "My small voting project gets flagged as spam, why?"
response = voteclarify(user_input, api_key="your_api_key")
print(response)

You can get a free API key by registering at https://token.llm7.io/.

Limitations

This package is designed to handle common issues with small voting or ranking projects. However, it is not a substitute for professional moderation or review. Always review the output carefully and take necessary actions to ensure the integrity and security of your project.

Contributing

Feel free to contribute to this package by submitting pull requests or opening issues on the GitHub page.

Author

Eugene Evstafev (hi@eugene.plus)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voteclarify-2025.12.21091112.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voteclarify-2025.12.21091112-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file voteclarify-2025.12.21091112.tar.gz.

File metadata

  • Download URL: voteclarify-2025.12.21091112.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for voteclarify-2025.12.21091112.tar.gz
Algorithm Hash digest
SHA256 73947ac6f9d124dccb0790139be35c931da14ad411c98f8be6ecd7b3474ce34d
MD5 56d698e543bc37d44c7072c5a6f0548e
BLAKE2b-256 31ff214b76858caf32d46d7da00ea41412f080288ae1b83abe622b6c9cfff1c4

See more details on using hashes here.

File details

Details for the file voteclarify-2025.12.21091112-py3-none-any.whl.

File metadata

File hashes

Hashes for voteclarify-2025.12.21091112-py3-none-any.whl
Algorithm Hash digest
SHA256 49eb9dc63a46235ff22c3b531227421d6844236eef04b341dd5b5c99c554e12e
MD5 cd16535ff6988ea8528d91e9b15abbee
BLAKE2b-256 c18155e9a2ca427606882e3b3e3baaa8ae1815d240935d2a36d9f0d505a727ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page