intelisys


Nameintelisys JSON
Version 0.5.6 PyPI version JSON
download
home_pagehttps://github.com/lifsys/intelisys
SummaryIntelligence/AI services for the Lifsys Enterprise with enhanced max_history_words, efficient history trimming, and improved document processing
upload_time2024-08-27 22:53:42
maintainerNone
docs_urlNone
authorLifsys Enterprise
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Lifsys Enterprise Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ai intelligence openai anthropic google groq openrouter document processing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Intelisys: Your Advanced AI Assistant Library

Welcome to Intelisys, a powerful and versatile AI assistant library that provides a unified interface for interacting with various AI models and providers. Intelisys is designed to make AI integration seamless and efficient for developers of all levels.

## What's New in Version 0.5.6

- Enhanced `max_history_words` functionality for improved conversation management
- Optimized history trimming for efficient memory usage
- Improved asynchronous support with better error handling
- Added support for structured output with OpenAI provider using Pydantic models
- Expanded reference capabilities, now supporting various document types (PDF, Word, Excel, PowerPoint)
- Improved performance for long-running conversations

## Key Features

- Multi-provider support (OpenAI, Anthropic, OpenRouter, Groq)
- Asynchronous operations for improved performance
- Template-based chat for easy customization
- Structured output support using Pydantic models (OpenAI only)
- Image processing capabilities
- Efficient conversation history management
- Reference information support from various sources

## Installation

Install Intelisys using pip:

```bash
pip install intelisys
```

## Quick Start

Here's a simple example to get you started:

```python
from intelisys import Intelisys

# Create an Intelisys instance
ai = Intelisys(provider="openai", model="gpt-4")

# Chat with the AI
response = ai.chat("What is the capital of France?")
print(response)
```

## Advanced Usage

### Template-Based Chat

Use templates for more structured interactions:

```python
ai = Intelisys(provider="anthropic", model="claude-3-5-sonnet-20240620")
ai.set_default_template("Explain {{topic}} in simple terms.")
response = ai.template_chat(render_data={"topic": "quantum computing"})
print(response)
```

### Asynchronous Operations

Perform asynchronous chats for improved efficiency:

```python
import asyncio

async def async_chat():
    ai = Intelisys(provider="openai", model="gpt-4", use_async=True)
    response = await ai.chat_async("Discuss the future of AI")
    print(response)

asyncio.run(async_chat())
```

### Structured Output

Get structured responses using Pydantic models (OpenAI only):

```python
from pydantic import BaseModel

class MovieReview(BaseModel):
    title: str
    rating: float
    summary: str

ai = Intelisys(provider="openai", model="gpt-4")
ai.set_output_model(MovieReview)
result = ai.chat("Review the movie 'Inception'")
print(result)  # This will be a MovieReview instance
```

### Reference Information

Provide context to your AI assistant:

```python
ai = Intelisys(provider="openai", model="gpt-4")
ai.reference("https://example.com/article.html")
ai.reference("/path/to/local/document.pdf")
response = ai.chat("Summarize the referenced information")
print(response)
```

## API Reference

For a complete API reference, please refer to our [documentation](https://intelisys.readthedocs.io/).

## Contributing

We welcome contributions to Intelisys! 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.

## Changelog

For a detailed list of changes and version history, please refer to the [CHANGELOG.md](CHANGELOG.md) file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lifsys/intelisys",
    "name": "intelisys",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "ai, intelligence, openai, anthropic, google, groq, openrouter, document processing",
    "author": "Lifsys Enterprise",
    "author_email": "Lifsys Enterprise <contact@lifsys.com>",
    "download_url": "https://files.pythonhosted.org/packages/43/87/cfd26ac49dbd039b6f4eedc7a8e9b145a2951a9fd50731d16265fc4a073d/intelisys-0.5.6.tar.gz",
    "platform": null,
    "description": "# Intelisys: Your Advanced AI Assistant Library\n\nWelcome to Intelisys, a powerful and versatile AI assistant library that provides a unified interface for interacting with various AI models and providers. Intelisys is designed to make AI integration seamless and efficient for developers of all levels.\n\n## What's New in Version 0.5.6\n\n- Enhanced `max_history_words` functionality for improved conversation management\n- Optimized history trimming for efficient memory usage\n- Improved asynchronous support with better error handling\n- Added support for structured output with OpenAI provider using Pydantic models\n- Expanded reference capabilities, now supporting various document types (PDF, Word, Excel, PowerPoint)\n- Improved performance for long-running conversations\n\n## Key Features\n\n- Multi-provider support (OpenAI, Anthropic, OpenRouter, Groq)\n- Asynchronous operations for improved performance\n- Template-based chat for easy customization\n- Structured output support using Pydantic models (OpenAI only)\n- Image processing capabilities\n- Efficient conversation history management\n- Reference information support from various sources\n\n## Installation\n\nInstall Intelisys using pip:\n\n```bash\npip install intelisys\n```\n\n## Quick Start\n\nHere's a simple example to get you started:\n\n```python\nfrom intelisys import Intelisys\n\n# Create an Intelisys instance\nai = Intelisys(provider=\"openai\", model=\"gpt-4\")\n\n# Chat with the AI\nresponse = ai.chat(\"What is the capital of France?\")\nprint(response)\n```\n\n## Advanced Usage\n\n### Template-Based Chat\n\nUse templates for more structured interactions:\n\n```python\nai = Intelisys(provider=\"anthropic\", model=\"claude-3-5-sonnet-20240620\")\nai.set_default_template(\"Explain {{topic}} in simple terms.\")\nresponse = ai.template_chat(render_data={\"topic\": \"quantum computing\"})\nprint(response)\n```\n\n### Asynchronous Operations\n\nPerform asynchronous chats for improved efficiency:\n\n```python\nimport asyncio\n\nasync def async_chat():\n    ai = Intelisys(provider=\"openai\", model=\"gpt-4\", use_async=True)\n    response = await ai.chat_async(\"Discuss the future of AI\")\n    print(response)\n\nasyncio.run(async_chat())\n```\n\n### Structured Output\n\nGet structured responses using Pydantic models (OpenAI only):\n\n```python\nfrom pydantic import BaseModel\n\nclass MovieReview(BaseModel):\n    title: str\n    rating: float\n    summary: str\n\nai = Intelisys(provider=\"openai\", model=\"gpt-4\")\nai.set_output_model(MovieReview)\nresult = ai.chat(\"Review the movie 'Inception'\")\nprint(result)  # This will be a MovieReview instance\n```\n\n### Reference Information\n\nProvide context to your AI assistant:\n\n```python\nai = Intelisys(provider=\"openai\", model=\"gpt-4\")\nai.reference(\"https://example.com/article.html\")\nai.reference(\"/path/to/local/document.pdf\")\nresponse = ai.chat(\"Summarize the referenced information\")\nprint(response)\n```\n\n## API Reference\n\nFor a complete API reference, please refer to our [documentation](https://intelisys.readthedocs.io/).\n\n## Contributing\n\nWe welcome contributions to Intelisys! 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\n## Changelog\n\nFor a detailed list of changes and version history, please refer to the [CHANGELOG.md](CHANGELOG.md) file.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Lifsys Enterprise  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Intelligence/AI services for the Lifsys Enterprise with enhanced max_history_words, efficient history trimming, and improved document processing",
    "version": "0.5.6",
    "project_urls": {
        "Bug Tracker": "https://github.com/lifsys/intelisys/issues",
        "Documentation": "https://intelisys.readthedocs.io/",
        "Homepage": "https://github.com/lifsys/intelisys",
        "Repository": "https://github.com/lifsys/intelisys.git"
    },
    "split_keywords": [
        "ai",
        " intelligence",
        " openai",
        " anthropic",
        " google",
        " groq",
        " openrouter",
        " document processing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ff81fa0e98fd374e7169eb81728960df8f0d513a7d08bb05c4ba64edc23abf9",
                "md5": "cbb372c6e1163f5e978c19ef4e089d12",
                "sha256": "9085c588dde0426eeb48f73cc927175ab0a631ba884e7f30f6f4b44f64d53775"
            },
            "downloads": -1,
            "filename": "intelisys-0.5.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cbb372c6e1163f5e978c19ef4e089d12",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 25389,
            "upload_time": "2024-08-27T22:53:40",
            "upload_time_iso_8601": "2024-08-27T22:53:40.992234Z",
            "url": "https://files.pythonhosted.org/packages/1f/f8/1fa0e98fd374e7169eb81728960df8f0d513a7d08bb05c4ba64edc23abf9/intelisys-0.5.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4387cfd26ac49dbd039b6f4eedc7a8e9b145a2951a9fd50731d16265fc4a073d",
                "md5": "4aefa3facef3c49b7984f5bb03d922ad",
                "sha256": "1da6d727a49f6f07930217209efe95ffdac7bb9e0b0a930db31e0c8bad0a9c5a"
            },
            "downloads": -1,
            "filename": "intelisys-0.5.6.tar.gz",
            "has_sig": false,
            "md5_digest": "4aefa3facef3c49b7984f5bb03d922ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 26218,
            "upload_time": "2024-08-27T22:53:42",
            "upload_time_iso_8601": "2024-08-27T22:53:42.517462Z",
            "url": "https://files.pythonhosted.org/packages/43/87/cfd26ac49dbd039b6f4eedc7a8e9b145a2951a9fd50731d16265fc4a073d/intelisys-0.5.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-27 22:53:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lifsys",
    "github_project": "intelisys",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "intelisys"
}
        
Elapsed time: 0.82478s