Generates structured summaries, timelines, and thematic insights from historical or cultural texts using pattern matching and language models.
Project description
Heritage Insight Package
leveraging pattern matching with language models to generate structured summaries and insights from user-provided historical or cultural texts.
Overview
A new package that accepts textual inputs related to specific topics or events and returns organized, key information such as summaries, timelines, or thematic breakdowns.
Installation
pip install heritage_insight
Usage
from heritage_insight import heritage_insight
user_input = "Input text here"
response = heritage_insight(user_input, verbose=False)
Example usage with specific LLMs
from heritage_insight import heritage_insight
from langchain_openai import ChatOpenAI
from langchain_anthropic import ChatAnthropic
from langchain_google_genai import ChatGoogleGenerativeAI
openai_response = heritage_insight(user_input, llm=ChatOpenAI())
anthropic_response = heritage_insight(user_input, llm=ChatAnthropic())
google_response = heritage_insight(user_input, llm=ChatGoogleGenerativeAI())
Configuration
user_input: str: the user input text to processllm: Optional[BaseChatModel]: the langchain llm instance to use, defaults to ChatLLM7api_key: Optional[str]: the api key for llm7, defaults to LLM7_API_KEY environment variable or LLM7 free tier limits
Using custom LLMs
You can safely pass your own llm instance (based on https://docs.langchain.dev/) if you want to use another LLM, via passing it like heritage_insight(user_input, llm=your_llm_instance).
LLM7 API Key
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits for LLM7, you can pass your own api_key via environment variable LLM7_API_KEY or via passing it directly like heritage_insight(user_input, api_key="your_api_key"). You can get a free api key by registering at https://token.llm7.io/
Support and Issues
Report issues and provide feedback at https://github.com/chigwell/heritage-insight
Author
Eugene Evstafev (hi@eugene.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 heritage_insight-2025.12.21201637.tar.gz.
File metadata
- Download URL: heritage_insight-2025.12.21201637.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 |
e38541d37ceff57baf9a6161fa260243a6f84d2ecb2999db13ccf5aeaf80385e
|
|
| MD5 |
a8134d93ef27fb32b01aee0c4261a47e
|
|
| BLAKE2b-256 |
b2c0302c6c27081a3053ec69517871ab391856d3603f98df72feb5a89d7e5f21
|
File details
Details for the file heritage_insight-2025.12.21201637-py3-none-any.whl.
File metadata
- Download URL: heritage_insight-2025.12.21201637-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
776f83bc1ec46b58ccc0e6e7bb804d8b6c8203f2b62943e8f656856b63e98d37
|
|
| MD5 |
a2e1aba367e4522ecc332aee678a2707
|
|
| BLAKE2b-256 |
66aa2246afbe01351a0c82e443a5a7489c94ca752fbcbecd3e2fe8af78650d33
|