Skip to main content

A new package designed to streamline the extraction of structured insights from brief, domain-specific reports. It receives a short text input describing recent events—such as satellite incidents—and

Project description

Satellite Insight Extractor

PyPI version License: MIT Downloads LinkedIn

A Python package designed to extract structured insights from brief, domain-specific reports about satellite incidents and other aerospace events. It provides a concise, structured summary highlighting key aspects like event type, involved entities, and immediate implications.


📦 Installation

Install the package via pip:

pip install satellite_insight_extractor

🚀 Features

  • Extracts structured insights from short text reports
  • Supports customizable LLM backends (LLM7 by default)
  • Regex-validated output for consistent formatting
  • Lightweight and efficient for aerospace/satellite monitoring

🔧 Usage

Basic Usage (Default LLM7)

from satellite_insight_extractor import satellite_insight_extractor

# Example input: A short report about a satellite incident
user_input = """
Satellite X-912 experienced a partial solar array failure during orbital maneuver.
Ground control is investigating potential debris impact.
"""

# Extract insights (uses default LLM7)
response = satellite_insight_extractor(user_input)
print(response)

Custom LLM Integration

You can replace the default LLM7 with any LangChain-compatible model:

Using OpenAI

from langchain_openai import ChatOpenAI
from satellite_insight_extractor import satellite_insight_extractor

llm = ChatOpenAI()
response = satellite_insight_extractor(
    user_input="Your satellite report here...",
    llm=llm
)

Using Anthropic

from langchain_anthropic import ChatAnthropic
from satellite_insight_extractor import satellite_insight_extractor

llm = ChatAnthropic()
response = satellite_insight_extractor(
    user_input="Your satellite report here...",
    llm=llm
)

Using Google Vertex AI

from langchain_google_genai import ChatGoogleGenerativeAI
from satellite_insight_extractor import satellite_insight_extractor

llm = ChatGoogleGenerativeAI()
response = satellite_insight_extractor(
    user_input="Your satellite report here...",
    llm=llm
)

🔑 API Key Configuration

The package uses LLM7 as the default LLM provider. You can configure it in two ways:

  1. Environment Variable (recommended for security):

    export LLM7_API_KEY="your_api_key_here"
    
  2. Direct Parameter:

    from satellite_insight_extractor import satellite_insight_extractor
    
    response = satellite_insight_extractor(
        user_input="Your report...",
        api_key="your_api_key_here"
    )
    

Get a Free LLM7 API Key

Register at https://token.llm7.io/ for your free API key.


📝 Function Signature

satellite_insight_extractor(
    user_input: str,
    api_key: Optional[str] = None,
    llm: Optional[BaseChatModel] = None
) -> List[str]

Parameters:

  • user_input (str): The input text describing satellite/aerospace events.
  • api_key (Optional[str]): LLM7 API key (default: os.getenv("LLM7_API_KEY")).
  • llm (Optional[BaseChatModel]): Custom LangChain LLM instance (default: ChatLLM7).

Returns:

  • List[str]: Structured insights matching the predefined regex pattern.

📌 Output Format

The output is a regex-validated list of structured insights, typically including:

  • Event type (e.g., "solar array failure")
  • Involved entities (e.g., "Satellite X-912")
  • Immediate implications (e.g., "orbital maneuver disrupted")

Example output:

[
    "Event: Solar Array Failure",
    "Entity: Satellite X-912",
    "Location: Low Earth Orbit",
    "Status: Under Investigation"
]

🔄 Default LLM7 Rate Limits

The free tier of LLM7 is sufficient for most use cases. For higher rate limits, upgrade your plan or use a custom LLM.


📖 Documentation & Support


📜 License

This project is licensed under the MIT License.


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

Built Distribution

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

File details

Details for the file satellite_insight_extractor-2025.12.21080509.tar.gz.

File metadata

File hashes

Hashes for satellite_insight_extractor-2025.12.21080509.tar.gz
Algorithm Hash digest
SHA256 6a7ee3673e09dff08428ae3f5297e123c4c959f33c2eda5dc208c69d0056d0c4
MD5 0ed2bdde54625254017acd52b567a66b
BLAKE2b-256 cbd278f2efeb73162d8c2a9256b47b8aaae576c23bd505d1576240b1c7d0a153

See more details on using hashes here.

File details

Details for the file satellite_insight_extractor-2025.12.21080509-py3-none-any.whl.

File metadata

File hashes

Hashes for satellite_insight_extractor-2025.12.21080509-py3-none-any.whl
Algorithm Hash digest
SHA256 0c8515805e5f887888f7b351d9867bcf5a922e3a5a2211a062055436cc9e645b
MD5 79a23dfe7a1f89fe62779bf77c83d2cf
BLAKE2b-256 79b1747553499dc73fa104ad853a17eac071fc246def713a6191e58e26a4a2d6

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