Chronicle-ai extracts and summarizes historical queries into structured, formatted summaries using llmatch-messages for clarity.
Project description
Chronicle AI
Extract and summarize key information from historical or factual queries.
Overview
Chronic AI is a Python package that helps users obtain well-structured information from complex or detailed queries. It takes a user's input text, such as a question about historical events or facts, and returns a structured summary. This summary includes the main points, context, and relevant details, ensuring the information is presented in a clear and organized manner.
Features
- Structured Summaries: Obtain clear and organized summaries of complex queries.
- Predefined Format: Ensure output adheres to a predefined format with the help of llmatch-messages.
- Easy to Use: Leverage the package to quickly obtain structured information from detailed queries.
Installation
pip install chronicle_ai
Usage
from chronicle_ai import chronicle_ai
response = chronicle_ai(user_input="What were the main causes of World War I?")
print(response)
Parameters
user_input: The user input text to process. (Type:str)llm: The langchain llm instance to use. If not provided, the default ChatLLM7 will be used. (Type:Optional[BaseChatModel])api_key: The api key for llm7. If not provided, the free tier api key will be used. (Type:Optional[str])
Defaults
- The package uses the ChatLLM7 from langchain_llm7 by default. Devs can safely pass their own llm instance (based on https://docs.langchain.com/) if they want to use another LLM.
Examples
from langchain_openai import ChatOpenAI
from chronicle_ai import chronicle_ai
llm = ChatOpenAI()
response = chronicle_ai(user_input="What were the main causes of World War I?", llm=llm)
from langchain_anthropic import ChatAnthropic
from chronicle_ai import chronicle_ai
llm = ChatAnthropic()
response = chronicle_ai(user_input="What were the main causes of World War I?", llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from chronicle_ai import chronicle_ai
llm = ChatGoogleGenerativeAI()
response = chronicle_ai(user_input="What were the main causes of World War I?", llm=llm)
Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If devs want higher rate limits for LLM7 they can pass their own api_key via environment variable LLM7_API_KEY or via passing it directly like chronicle_ai(user_input, api_key="their_api_key").
Getting a Free API Key
Dev can get a free api key by registering at https://token.llm7.io/.
Author
Eugene Evstafev ( GitHub: chigwell ) ( hi@eugegne.plus )
GitHub Issues
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 chronicle_ai-2025.12.22081740.tar.gz.
File metadata
- Download URL: chronicle_ai-2025.12.22081740.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c35e2439250b104f57c01c7c4b5d40416cdb19908b19d45e6fa5f84a960101
|
|
| MD5 |
4d94c4f93436e73115e0088f7f54d5b0
|
|
| BLAKE2b-256 |
1a812cc036a2beeb567f932d5e01906f46ec0cf3ed034bd0e9769ed161442f33
|
File details
Details for the file chronicle_ai-2025.12.22081740-py3-none-any.whl.
File metadata
- Download URL: chronicle_ai-2025.12.22081740-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
6b3b453277d3963194bc1007fae9549d81dd31268c1afde1948299b50fb8ceaf
|
|
| MD5 |
f2df4a352ca921d7369cd015f1c0d151
|
|
| BLAKE2b-256 |
29c7bf2e3cf0d902e549fa096fb2d2971c00a47805b242edb0a68b3974779f3a
|