A new package designed to analyze and structure user-submitted text, specifically focusing on community feedback and moderation. The package leverages the capabilities of llmatch-messages to process a
Project description
Feedback Analyzer Mod
A Python package designed to analyze and structure user-submitted text, specifically focusing on community feedback and moderation. This tool leverages the capabilities of llmatch-messages to process and extract meaningful insights from user inputs, such as forum posts, comments, or feedback forms. By using pattern matching and retry logic, the package ensures that the extracted data is consistent and formatted correctly, making it easier for moderators to review and respond to user feedback.
Features
- Pattern Matching: Extracts structured data from unstructured user inputs.
- Retry Logic: Ensures consistent and reliable data extraction.
- Flexible LLM Integration: Supports various LLM providers, including LLM7, OpenAI, Anthropic, and Google.
- Easy Integration: Simple API for seamless integration into existing workflows.
Installation
pip install feedback_analyzer_mod
Usage
Basic Usage
from feedback_analyzer_mod import feedback_analyzer_mod
user_input = "Your user input text here"
response = feedback_analyzer_mod(user_input)
print(response)
Using a Custom LLM
OpenAI
from langchain_openai import ChatOpenAI
from feedback_analyzer_mod import feedback_analyzer_mod
llm = ChatOpenAI()
response = feedback_analyzer_mod(user_input, llm=llm)
print(response)
Anthropic
from langchain_anthropic import ChatAnthropic
from feedback_analyzer_mod import feedback_analyzer_mod
llm = ChatAnthropic()
response = feedback_analyzer_mod(user_input, llm=llm)
print(response)
from langchain_google_genai import ChatGoogleGenerativeAI
from feedback_analyzer_mod import feedback_analyzer_mod
llm = ChatGoogleGenerativeAI()
response = feedback_analyzer_mod(user_input, llm=llm)
print(response)
Parameters
- user_input (str): The user input text to process.
- llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default
ChatLLM7will be used. - api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable
LLM7_API_KEYwill be used.
Default LLM
The package uses ChatLLM7 from langchain_llm7 by default. You can get a free API key by registering at LLM7.
Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits, you can pass your own API key via the environment variable LLM7_API_KEY or directly via the api_key parameter.
Author
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
Issues
For any issues or suggestions, please open an issue on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feedback_analyzer_mod-2025.12.21090801.tar.gz.
File metadata
- Download URL: feedback_analyzer_mod-2025.12.21090801.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4d7ba19cea3dbb3317ca0ec302bdff2e01286a9cf815b36f23d52e22b0b4df0
|
|
| MD5 |
304c080861923952286da79b543ef798
|
|
| BLAKE2b-256 |
9e49c4f94b9c73e1c96dccf6dbec9cc59e6179ae169d3f4e2dfa734226f8477a
|
File details
Details for the file feedback_analyzer_mod-2025.12.21090801-py3-none-any.whl.
File metadata
- Download URL: feedback_analyzer_mod-2025.12.21090801-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b586922a57724bfb138edfd9a7118ca77b0779b63443e10b29e1ca07b429d144
|
|
| MD5 |
8dd94787b00d102af97c13cc48eb3e38
|
|
| BLAKE2b-256 |
03a33c06756132ac9dee64713605eaa3b3e5a60f20da4ca038ce285af9e19f2b
|