A new package would process user complaints or descriptions about logging systems, extracting structured insights such as common pain points, root causes, or improvement suggestions. It uses an LLM to
Project description
Logference
Extract structured insights from logging system feedback using AI
Logference is a Python package that analyzes user complaints or descriptions about logging systems, extracting structured insights such as common pain points, root causes, or improvement suggestions. It leverages an LLM to process input text and categorize feedback, helping teams quickly identify and address logging inefficiencies without manual review.
📦 Installation
Install the package via pip:
pip install logference
🚀 Usage
Basic Usage (Default LLM: ChatLLM7)
from logference import logference
user_input = """
The logs are too verbose and clutter the dashboard.
I can't filter logs by severity level efficiently.
The log rotation policy is causing performance issues.
"""
response = logference(user_input)
print(response) # Structured feedback insights
Custom LLM Integration
You can replace the default ChatLLM7 with any LangChain-compatible LLM (e.g., OpenAI, Anthropic, Google Vertex AI):
Using OpenAI
from langchain_openai import ChatOpenAI
from logference import logference
llm = ChatOpenAI()
response = logference(user_input, llm=llm)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from logference import logference
llm = ChatAnthropic()
response = logference(user_input, llm=llm)
Using Google Vertex AI
from langchain_google_genai import ChatGoogleGenerativeAI
from logference import logference
llm = ChatGoogleGenerativeAI()
response = logference(user_input, llm=llm)
🔧 Parameters
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
The raw text describing logging system feedback. |
api_key |
Optional[str] |
Your LLM7 API key (if not using default). Falls back to LLM7_API_KEY env var. |
llm |
Optional[BaseChatModel] |
Custom LangChain LLM instance (default: ChatLLM7). |
🔑 API Key
- Default LLM: Uses
ChatLLM7fromlangchain_llm7. - Free Tier: Sufficient for most use cases (rate limits apply).
- Custom Key: Pass via
api_keyorLLM7_API_KEYenv var.logference(user_input, api_key="your_api_key_here")
- Get a Key: Register at LLM7 Token.
📝 Features
- Structured Output: Extracts actionable insights from unstructured text.
- Flexible LLM Support: Works with any LangChain-compatible model.
- Regex Validation: Ensures output adheres to predefined patterns.
📋 Example Output
For input:
"Logs are slow to query, and the retention policy deletes critical data."
Logference returns structured feedback like:
[
{"category": "Performance", "issue": "Slow log queries"},
{"category": "Data Loss", "issue": "Retention policy deletes critical logs"}
]
📜 License
MIT
📢 Support & Issues
Report bugs or feature requests at: GitHub Issues
👤 Author
Eugene Evstafev (@chigwell) 📧 hi@euegne.plus
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 logference-2025.12.21182056.tar.gz.
File metadata
- Download URL: logference-2025.12.21182056.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4db78831a6746db37ca853af8f4378b7ae45d2d582618e2d1e7594e9ec6cac37
|
|
| MD5 |
e7ea41d84987e14ffc31a1a3593ac935
|
|
| BLAKE2b-256 |
861589893c2d52b424fb9dd464bb0f6bbfd14a3d068dd906d7727af12d7c7bcb
|
File details
Details for the file logference-2025.12.21182056-py3-none-any.whl.
File metadata
- Download URL: logference-2025.12.21182056-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a91229d83a0686636770bec5df375bf538376965d906391bb369ac109ccb6d
|
|
| MD5 |
e8817047340af1145bc8b3542db24c2b
|
|
| BLAKE2b-256 |
532b1105da1cc33f68070a26d9de7f7b6eb3f75050d2a2dd2101842b2dc501dd
|