A new package designed to process user input descriptions of technical products or components and generate structured summaries or specifications. It leverages LLMs to interpret the input text and ext
Project description
techspec-extract
A Python package designed to process user input descriptions of technical products or components and generate structured summaries or specifications. It leverages LLMs to interpret the input text and extract key details such as features, return status, or related media references, enabling consistent data extraction for product management, customer support, or inventory tracking without handling the actual media files.
Installation
pip install techspec_extract
Usage
from techspec_extract import techspec_extract
user_input = "Your user input text here"
response = techspec_extract(user_input)
print(response)
Parameters
user_input(str): The user input text to process.llm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the environment variableLLM7_API_KEYwill be used.
Using Different LLMs
You can safely pass your own LLM instance if you want to use another LLM. Here are examples of how to use different LLMs:
Using OpenAI
from langchain_openai import ChatOpenAI
from techspec_extract import techspec_extract
llm = ChatOpenAI()
response = techspec_extract(user_input, llm=llm)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from techspec_extract import techspec_extract
llm = ChatAnthropic()
response = techspec_extract(user_input, llm=llm)
Using Google
from langchain_google_genai import ChatGoogleGenerativeAI
from techspec_extract import techspec_extract
llm = ChatGoogleGenerativeAI()
response = techspec_extract(user_input, llm=llm)
Rate Limits
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 the environment variable LLM7_API_KEY or directly via the api_key parameter:
from techspec_extract import techspec_extract
user_input = "Your user input text here"
response = techspec_extract(user_input, api_key="your_api_key")
You can get a free API key by registering at LLM7.
Issues
If you encounter any issues, please report them on the GitHub issues page.
Author
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
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 techspec_extract-2025.12.21115447.tar.gz.
File metadata
- Download URL: techspec_extract-2025.12.21115447.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9fdfc62518a95547ed5ff0429c377431c0e01e60f336c4e7200205da6d25f46
|
|
| MD5 |
edd468d4b3ddef910902db1e52455ada
|
|
| BLAKE2b-256 |
c22b7945a8ce3c12cfef6391bef92c09295e5c9e6c6af47f57f49b2118926b4b
|
File details
Details for the file techspec_extract-2025.12.21115447-py3-none-any.whl.
File metadata
- Download URL: techspec_extract-2025.12.21115447-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4c9fb7b28cb65c15563498b8aae07e64e5a4fa05045cfdba038ef4999b77760
|
|
| MD5 |
fe7638a5c7684caea0fd13ce43508915
|
|
| BLAKE2b-256 |
aeca48003f07b3bd876095268512be46791a3bb0f0db5dd0f38faff7070b0e15
|