https://github.com/chigwell/cogni-summary
cogni-summary efficiently generates structured non-technical summaries for productivity and cognitive science content.
https://github.com/chigwell/cogni-summary
actionable-takeaways app-integration clean-formatting content-curation definitions educational-tools information-extraction key-insights language-model non-sensitive-topics prompt-engineering regex-parsing structured-output validation
Last synced: 5 months ago
JSON representation
cogni-summary efficiently generates structured non-technical summaries for productivity and cognitive science content.
- Host: GitHub
- URL: https://github.com/chigwell/cogni-summary
- Owner: chigwell
- Created: 2025-12-21T18:39:04.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-21T18:39:20.000Z (6 months ago)
- Last Synced: 2025-12-23T07:37:05.866Z (5 months ago)
- Topics: actionable-takeaways, app-integration, clean-formatting, content-curation, definitions, educational-tools, information-extraction, key-insights, language-model, non-sensitive-topics, prompt-engineering, regex-parsing, structured-output, validation
- Language: Python
- Homepage: https://pypi.org/project/cogni-summary/
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cogni-Summary
[](https://badge.fury.io/py/cogni-summary)
[](https://opensource.org/licenses/MIT)
[](https://pepy.tech/project/cogni-summary)
[](https://www.linkedin.com/in/eugene-evstafev-716669181/)
Extract key insights, definitions, and actionable takeaways from any text input using a large language model.
## Installation
```bash
pip install cogni_summary
```
## Usage
```python
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:
```python
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:
```python
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:
```python
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 .
## Documentation
For more information about the LangChain libraries used in this package, please refer to:
- [LangChain LLM7 documentation](https://docs.langchain.com/docs/tutorials/llm7/)
- [LangChain OpenAI documentation](https://docs.langchain.com/docs/tutorials/openai/)
- [LangChain Anthropic documentation](https://docs.langchain.com/docs/tutorials/anthropic/)
- [LangChain Google GenAI documentation](https://docs.langchain.com/docs/tutorials/google-genai/)
## Contributing
Please submit any issues or pull requests to our GitHub repository:
## Author
Eugene Evstafev ()