Skip to main content

A new package that analyzes user queries about AI tool reliability and generates structured insights. It takes a text input, such as a question or comment about AI code editor performance issues, and

Project description

AI Reliability Analyzer

PyPI version License: MIT Downloads LinkedIn

Overview

The ai_reliability_analyzer package is designed to analyze user queries about AI tool reliability and generate structured insights. It takes a text input, such as a question or comment about AI code editor performance issues, and uses a Language Model (LLM) to produce a categorized breakdown of potential reasons (e.g., latency, model limitations, integration challenges). The output is formatted for easy parsing, ensuring consistency and actionable feedback without delving into sensitive or restricted topics.

Features

  • Analyzes user queries about AI tool reliability.
  • Generates structured insights and categorizes potential reasons.
  • Supports custom LLM instances for flexibility.
  • Defaults to using ChatLLM7 from langchain_llm7 if no LLM instance is provided.
  • Ensures output consistency and actionable feedback.

Installation

You can install the package using pip:

pip install ai_reliability_analyzer

Usage

Basic Usage

from ai_reliability_analyzer import ai_reliability_analyzer

user_input = "Why is my AI code editor so slow?"
response = ai_reliability_analyzer(user_input)
print(response)

Using a Custom LLM Instance

You can use a custom LLM instance by passing it to the function. For example, to use ChatOpenAI from langchain_openai:

from langchain_openai import ChatOpenAI
from ai_reliability_analyzer import ai_reliability_analyzer

llm = ChatOpenAI()
user_input = "Why is my AI code editor so slow?"
response = ai_reliability_analyzer(user_input, llm=llm)
print(response)

Similarly, you can use other LLM instances like ChatAnthropic or ChatGoogleGenerativeAI:

from langchain_anthropic import ChatAnthropic
from ai_reliability_analyzer import ai_reliability_analyzer

llm = ChatAnthropic()
user_input = "Why is my AI code editor so slow?"
response = ai_reliability_analyzer(user_input, llm=llm)
print(response)
from langchain_google_genai import ChatGoogleGenerativeAI
from ai_reliability_analyzer import ai_reliability_analyzer

llm = ChatGoogleGenerativeAI()
user_input = "Why is my AI code editor so slow?"
response = ai_reliability_analyzer(user_input, llm=llm)
print(response)

Using a Custom API Key

If you want to use a custom API key for ChatLLM7, you can pass it directly or set it via the environment variable LLM7_API_KEY:

from ai_reliability_analyzer import ai_reliability_analyzer

user_input = "Why is my AI code editor so slow?"
api_key = "your_custom_api_key"
response = ai_reliability_analyzer(user_input, api_key=api_key)
print(response)

Or set the environment variable:

export LLM7_API_KEY="your_custom_api_key"

Then use the package without passing the API key:

from ai_reliability_analyzer import ai_reliability_analyzer

user_input = "Why is my AI code editor so slow?"
response = ai_reliability_analyzer(user_input)
print(response)

Rate Limits

The default rate limits for the 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 the environment variable LLM7_API_KEY or directly in the function call.

You can get a free API key by registering at LLM7 Token.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License.

Author

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

ai_reliability_analyzer-2025.12.21171415.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file ai_reliability_analyzer-2025.12.21171415.tar.gz.

File metadata

File hashes

Hashes for ai_reliability_analyzer-2025.12.21171415.tar.gz
Algorithm Hash digest
SHA256 ce080032773ee4c210888a554e59b59baa376caf343d9e98322a43fdf3471007
MD5 406a65e807a077c5fc83e1bf85e52365
BLAKE2b-256 caa4414b4a75db7c8fe9b3b1b2873f0ff09c688aae30586f738c41b77d86615c

See more details on using hashes here.

File details

Details for the file ai_reliability_analyzer-2025.12.21171415-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_reliability_analyzer-2025.12.21171415-py3-none-any.whl
Algorithm Hash digest
SHA256 8bac7b04107c9325cda67780245a5d90fd462919d4e73dd5b35225e6c441eaf0
MD5 1bbe6a0646909e928bab957032c9647d
BLAKE2b-256 2a09f1acec3bb8dcda5816f6182a0165054b85601538044fef8e234be21a7313

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