tech-insights-extractor summarizes tech breakthroughs, extracts key innovations, and categorizes advances from user text using LLM prompts.
Project description
tech-insights-extractor
tech_insights_extractor is a lightweight Python package that lets you quickly turn unstructured text about recent technological advancements into structured, concise insights.
It uses a language‑model‑based prompt‐engineering approach combined with regular‑expression validation to:
- Summarise key innovations
- Identify the nature of breakthroughs
- Output the information in a consistent, easy‑to‑consume format
The package comes with a default LLM implementation (ChatLLM7 from langchain_llm7), but you can inject any LangChain BaseChatModel (OpenAI, Anthropic, Google Gemini, etc.) for customized behaviour.
Table of Contents
Installation
pip install tech_insights_extractor
Quick Start
from tech_insights_extractor import tech_insights_extractor
text = """
Recent research has unveiled a novel quantum‑error correction code that reduces surface‑code overhead by 30%. ...
"""
# Using the default ChatLLM7
insights = tech_insights_extractor(user_input=text)
print(insights)
# ['Summary: ...', 'Key Innovation: ...', 'Category: Quantum Computing']
Usage
from tech_insights_extractor import tech_insights_extractor
Parameters
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
The raw text you want to analyse. |
llm |
Optional[BaseChatModel] |
A LangChain chat model to send prompts to. If omitted, the package falls back to its built‑in ChatLLM7. |
api_key |
Optional[str] |
The API key for LLM7. If omitted, the package checks the LLM7_API_KEY environment variable, and finally defaults to "None" (free tier). |
Default LLM
If you do not supply an llm, tech_insights_extractor will automatically instantiate a ChatLLM7 with the provided or environment key.
# No LLM arg – uses ChatLLM7 internally
insights = tech_insights_extractor(user_input=text)
Custom LLMs
You can drop in any LangChain BaseChatModel. Examples below:
OpenAI
from langchain_openai import ChatOpenAI
from tech_insights_extractor import tech_insights_extractor
llm = ChatOpenAI(model="gpt-4o-mini")
insights = tech_insights_extractor(user_input=text, llm=llm)
Anthropic
from langchain_anthropic import ChatAnthropic
from tech_insights_extractor import tech_insights_extractor
llm = ChatAnthropic()
insights = tech_insights_extractor(user_input=text, llm=llm)
Google Gemini
from langchain_google_genai import ChatGoogleGenerativeAI
from tech_insights_extractor import tech_insights_extractor
llm = ChatGoogleGenerativeAI(model="gemini-1.5-pro")
insights = tech_insights_extractor(user_input=text, llm=llm)
Rate Limits & API Key
The free tier of LLM7 offers generous limits for most projects.
If you require higher throughput or want to avoid the default key:
- Register for an API key at https://token.llm7.io/.
- Pass it directly:
insights = tech_insights_extractor(user_input=text, api_key="your_api_key_here")
or export it as an environment variable:
export LLM7_API_KEY="your_api_key_here"
Troubleshooting & Issues
Please report bugs or feature requests at: https://github.com/chigwell/tech-insights-extractor/issues
License & Contact
- Author: Eugene Evstafev
- Email: hi@euegne.plus
- GitHub: @chigwell
The project is open source under the MIT License. Feel free to fork, modify, and contribute!
Happy extracting!
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 tech_insights_extractor-2025.12.21230046.tar.gz.
File metadata
- Download URL: tech_insights_extractor-2025.12.21230046.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d107b086fb09dc3caeb0c15621446c34e7a26a85baa6f1bdbf0183858ba4a3
|
|
| MD5 |
b66a5b57b352a3c61c0cbac49da018e7
|
|
| BLAKE2b-256 |
04289075d48f5651ed821860070a33994eddcffdef3f9cf27c6e6000d081af59
|
File details
Details for the file tech_insights_extractor-2025.12.21230046-py3-none-any.whl.
File metadata
- Download URL: tech_insights_extractor-2025.12.21230046-py3-none-any.whl
- Upload date:
- Size: 5.7 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 |
8c74652ce0407824b177a5932278c37315cc64a64e341a4d44e62765b4abe67c
|
|
| MD5 |
e43c2ad443591683d86d1700d9e8767f
|
|
| BLAKE2b-256 |
49bcb3ade602593e03d731d51a005cd28f12602d325d8f706507705df26524be
|