Name | promptia JSON |
Version |
0.5.1
JSON |
| download |
home_page | None |
Summary | Promptia is a Python library designed to streamline the management and generation of prompts for Large Language Models (LLMs). |
upload_time | 2024-11-07 03:43:29 |
maintainer | None |
docs_url | None |
author | tamuto |
requires_python | <4.0,>=3.10 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Promptia
Promptia is a Python library designed to streamline the management and generation of prompts for Large Language Models (LLMs).
## Features
- Manage prompt templates for various LLMs and APIs
- Convert abstract templates to specific API formats
- Support for function calling with detailed configurations
- Version control for templates
- Dynamic information embedding using Retrieval-Augmented Generation (RAG)
- Modular design for flexibility and extensibility
## Installation
```
pip install promptia[openai]
```
## Quick Start
```python
from promptia import Promptia
from promptia import PromptTemplate
from promptia import Message
from promptia.llm.openai import OpenAIGPT4oMini
template = PromptTemplate(
name='greeting',
description='greeting template',
system="Your name is {{name}}. You have wandered into {{place}}. Please act.",
messages=[
Message(role='user', content='Who are you?'),
],
parameters={
'name': 'string',
'place': 'string'
},
function_calling_config=None
)
tia = Promptia()
prompt = tia.build(template, {"name": "Alice", "place": "Wonderland"})
llm = OpenAIGPT4oMini()
result = llm.call_llm(prompt)
print(result)
```
## Contributing
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for more details.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "promptia",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "tamuto",
"author_email": "tamuto@infodb.jp",
"download_url": "https://files.pythonhosted.org/packages/20/cd/ac24410d5afd9ead6721532ccdfe5057978de0644543256d0b15b4ac6646/promptia-0.5.1.tar.gz",
"platform": null,
"description": "# Promptia\n\nPromptia is a Python library designed to streamline the management and generation of prompts for Large Language Models (LLMs).\n\n## Features\n\n- Manage prompt templates for various LLMs and APIs\n- Convert abstract templates to specific API formats\n- Support for function calling with detailed configurations\n- Version control for templates\n- Dynamic information embedding using Retrieval-Augmented Generation (RAG)\n- Modular design for flexibility and extensibility\n\n## Installation\n\n```\npip install promptia[openai]\n```\n\n## Quick Start\n\n```python\nfrom promptia import Promptia\nfrom promptia import PromptTemplate\nfrom promptia import Message\nfrom promptia.llm.openai import OpenAIGPT4oMini\n\ntemplate = PromptTemplate(\n name='greeting',\n description='greeting template',\n system=\"Your name is {{name}}. You have wandered into {{place}}. Please act.\",\n messages=[\n Message(role='user', content='Who are you?'),\n ],\n parameters={\n 'name': 'string',\n 'place': 'string'\n },\n function_calling_config=None\n)\ntia = Promptia()\nprompt = tia.build(template, {\"name\": \"Alice\", \"place\": \"Wonderland\"})\n\nllm = OpenAIGPT4oMini()\nresult = llm.call_llm(prompt)\nprint(result)\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for more details.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": null,
"summary": "Promptia is a Python library designed to streamline the management and generation of prompts for Large Language Models (LLMs).",
"version": "0.5.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "753a014bf5e3baad533ccac78d9270a35844907a3f79347b6a2f935b8539cb2a",
"md5": "2514bd33b36f0fd3704e1943b3fc4829",
"sha256": "054fbfaa272f4b6bd6ea7a75feb304f4f06911963bc6f90b1bfa6cc0bcf6fe17"
},
"downloads": -1,
"filename": "promptia-0.5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2514bd33b36f0fd3704e1943b3fc4829",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 13263,
"upload_time": "2024-11-07T03:43:27",
"upload_time_iso_8601": "2024-11-07T03:43:27.938846Z",
"url": "https://files.pythonhosted.org/packages/75/3a/014bf5e3baad533ccac78d9270a35844907a3f79347b6a2f935b8539cb2a/promptia-0.5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "20cdac24410d5afd9ead6721532ccdfe5057978de0644543256d0b15b4ac6646",
"md5": "5d6deced6b5c51bae92712f35651666c",
"sha256": "3e0d9509e10896e5b6e01f28acd25e7b04ee3ff3e926084ab067fc09c86b7f26"
},
"downloads": -1,
"filename": "promptia-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "5d6deced6b5c51bae92712f35651666c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 8199,
"upload_time": "2024-11-07T03:43:29",
"upload_time_iso_8601": "2024-11-07T03:43:29.392165Z",
"url": "https://files.pythonhosted.org/packages/20/cd/ac24410d5afd9ead6721532ccdfe5057978de0644543256d0b15b4ac6646/promptia-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-07 03:43:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "promptia"
}