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
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:
-
Environment Variable (recommended for security):
export LLM7_API_KEY="your_api_key_here"
-
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
- GitHub Issues: https://github.com/chigwell/satellite-insight-extractor/issues
- Author: Eugene Evstafev (LinkedIn)
- Email: hi@euegne.plus
📜 License
This project is licensed under the MIT License.
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 satellite_insight_extractor-2025.12.21080509.tar.gz.
File metadata
- Download URL: satellite_insight_extractor-2025.12.21080509.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7ee3673e09dff08428ae3f5297e123c4c959f33c2eda5dc208c69d0056d0c4
|
|
| MD5 |
0ed2bdde54625254017acd52b567a66b
|
|
| BLAKE2b-256 |
cbd278f2efeb73162d8c2a9256b47b8aaae576c23bd505d1576240b1c7d0a153
|
File details
Details for the file satellite_insight_extractor-2025.12.21080509-py3-none-any.whl.
File metadata
- Download URL: satellite_insight_extractor-2025.12.21080509-py3-none-any.whl
- Upload date:
- Size: 5.3 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 |
0c8515805e5f887888f7b351d9867bcf5a922e3a5a2211a062055436cc9e645b
|
|
| MD5 |
79a23dfe7a1f89fe62779bf77c83d2cf
|
|
| BLAKE2b-256 |
79b1747553499dc73fa104ad853a17eac071fc246def713a6191e58e26a4a2d6
|