A Python package designed to analyze user-submitted discussions or problem descriptions about improving business interfaces. This tool processes input text and outputs structured summaries highlighting key issues, suggested improvements, or actionable insights, helping teams quickly understand and address user feedback.
pip install ui_feedback_parserThe main function ui_feedback_parser takes user input text and returns a list of extracted insights:
from ui_feedback_parser import ui_feedback_parser
# Basic usage with default LLM7
user_input = "The Chase Travel app's booking process is confusing. I couldn't find the filter options for flights."
result = ui_feedback_parser(user_input)
print(result)
# Output: ["Booking process is confusing", "Missing filter options for flights"]user_input(str): The user input text to processllm(Optional[BaseChatModel]): A Langchain LLM instance to use. If not provided, defaults to ChatLLM7api_key(Optional[str]): API key for LLM7. If not provided, uses theLLM7_API_KEYenvironment variable or defaults to free tier
You can use other LLM providers by passing a Langchain Chat model instance:
# Using OpenAI
from langchain_openai import ChatOpenAI
from ui_feedback_parser import ui_feedback_parser
llm = ChatOpenAI()
result = ui_feedback_parser("The app's search function is too slow", llm=llm)
# Using Anthropic
from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic()
result = ui_feedback_parser("The checkout process has too many steps", llm=llm)
# Using Google
from langchain_google_genai import ChatGoogleGenerativeAI
llm = ChatGoogleGenerativeAI()
result = ui_feedback_parser("The dashboard doesn't show my recent trips", llm=llm)The default rate limits for LLM7's free tier are sufficient for most use cases. For higher rate limits:
- Set the environment variable:
export LLM7_API_KEY="your_api_key_here"- Or pass the key directly:
result = ui_feedback_parser(user_input, api_key="your_api_key_here")Get a free API key at https://token.llm7.io/
Report issues or suggest improvements on our GitHub issues page.
Eugene Evstafev
Email: hi@eugene.plus
GitHub: chigwell