cogni-summary efficiently generates structured non-technical summaries for productivity and cognitive science content.
Project description
Cogni-Summary
Extract key insights, definitions, and actionable takeaways from any text input using a large language model.
Installation
pip install cogni_summary
Usage
from cogni_summary import cogni_summary
response = cogni_summary(user_input="Your text here")
You can pass additional parameters to customize the model:
user_input: The text to be summarized (required).llm: The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.api_key: The API key for LLM7. If not provided, the default rate limits for LLM7 free tier will be used.
You can safely pass your own LLM instance (e.g., OpenAI, Anthropic, Google) using the corresponding LangChain library. For example, to use the OpenAI LLM:
from langchain_openai import ChatOpenAI
from cogni_summary import cogni_summary
llm = ChatOpenAI()
response = cogni_summary(user_input, llm=llm)
Alternatively, to use the Anthropic LLM:
from langchain_anthropic import ChatAnthropic
from cogni_summary import cogni_summary
llm = ChatAnthropic()
response = cogni_summary(user_input, llm=llm)
Or to use the Google LLM:
from langchain_google_genai import ChatGoogleGenerativeAI
from cogni_summary import cogni_summary
llm = ChatGoogleGenerativeAI()
response = cogni_summary(user_input, llm=llm)
If you need higher rate limits for LLM7, you can pass your own API key as an environment variable LLM7_API_KEY or directly as the api_key parameter.
Get a free API key by registering at https://token.llm7.io/.
Documentation
For more information about the LangChain libraries used in this package, please refer to:
- LangChain LLM7 documentation
- LangChain OpenAI documentation
- LangChain Anthropic documentation
- LangChain Google GenAI documentation
Contributing
Please submit any issues or pull requests to our GitHub repository: https://github.com/chigwell/cogni-summary
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 cogni_summary-2025.12.21183907.tar.gz.
File metadata
- Download URL: cogni_summary-2025.12.21183907.tar.gz
- Upload date:
- Size: 5.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 |
99f48e1ae3f668418dca89bf3bd603a8c0b0cd48c4696f18fab58a9afb3820dd
|
|
| MD5 |
1566be0509effb9a222d43b228d20d6a
|
|
| BLAKE2b-256 |
28725bc7690fa6f234d7e58877a95f9c0595fd1a6ac7edb7aa850fef366a2b8b
|
File details
Details for the file cogni_summary-2025.12.21183907-py3-none-any.whl.
File metadata
- Download URL: cogni_summary-2025.12.21183907-py3-none-any.whl
- Upload date:
- Size: 5.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 |
1ea57e6659fafc3805c37b0f797522609eca54f92a016e7db517c5d3f435bd98
|
|
| MD5 |
7d9265c02473579416151b99cf973bd4
|
|
| BLAKE2b-256 |
767fa1948f95155ccb3deadd540f8b923204bff19de3400e30d5030bc46a173f
|