lionagi 0.0.103__py3-none-any.whl → 0.0.105__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,97 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: lionagi
3
- Version: 0.0.103
4
- Summary: Towards automated general intelligence.
5
- Author: HaiyangLi
6
- Author-email: ocean@lionagi.ai
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: License :: OSI Approved :: Apache Software License
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
- Requires-Dist: aiohttp
14
- Requires-Dist: python-dotenv
15
- Requires-Dist: tiktoken
16
- Requires-Dist: httpx
17
-
18
- ![GitHub License](https://img.shields.io/github/license/lion-agi/lionagi?labelColor=233476aa&color=231fc935) ![PyPI - Version](https://img.shields.io/pypi/v/lionagi?color=231fc935) ![PyPI - Downloads](https://img.shields.io/pypi/dm/lionagi?labelColor=%233476aa&color=%231fc935)
19
-
20
- - PyPI: https://pypi.org/project/lionagi/
21
- - Documentation: TODO
22
- - Website: TODO
23
-
24
- # LionAGI
25
- **Towards Automated General Intelligence**
26
-
27
- LionAGI is a Python package that combines data manipulation with AI tools, aiming to simplify the integration of advanced machine learning tools, such as Large Language Models (i.e. OpenAI's GPT), with production level data centric projects.
28
-
29
- Install LionAGI with pip:
30
-
31
- ```bash
32
- pip install lionagi
33
- ```
34
- Download the `.env_template` file, input your OPENAI_API_KEY, save the file, rename as `.env` and put in your project's root directory.
35
-
36
- ### Features
37
-
38
- - Robust performance. LionAGI is written in almost pure python. With minimum external dependency (aiohttp, httpx, python-dotenv, tiktoken)
39
- - Efficient data operations for reading, chunking, binning, writing, storing and managing data.
40
- - Fast interaction with LLM services like OpenAI with configurable rate limiting concurrent API calls for maximum throughput.
41
- - Create a production ready LLM application in hours. Intuitive workflow management to streamline and expedite the process from idea to market.
42
-
43
- ---
44
- Currently, LionAGI only natively support OpenAI API calls, support for other LLM providers as well as open source models will be integrated in future releases. LionAGI is designed to be async only, please check python documentation [here](https://docs.python.org/3/library/asyncio.html)
45
-
46
-
47
- **Notice**:
48
- * calling API with maximum throughput over large set of data with advanced models i.e. gpt-4 can get **EXPENSIVE IN JUST SECONDS**,
49
- * please know what you are doing, and check the usage on OpenAI regularly
50
- * default rate limits are set to be **tier 1** of OpenAI model `gpt-4-1104-preview`, please check the [OpenAI usage limit documentation](https://platform.openai.com/docs/guides/rate-limits?context=tier-free) you can modify token rate parameters to fit different use cases.
51
- * Documentation is under process
52
-
53
-
54
- ### Quick Start
55
-
56
- The following example shows how to use LionAGI's `Session` object to interact with `gpt-4` model:
57
-
58
- ```python
59
- import lionagi as li
60
-
61
- # define system messages, context and user instruction
62
- system = "You are a helpful assistant designed to perform calculations."
63
- instruction = {"Addition":"Add the two numbers together i.e. x+y"}
64
- context = {"x": 10, "y": 5}
65
-
66
- # Initialize a session with a system message
67
- calculator = li.Session(system=system)
68
-
69
- # run a LLM API call
70
- result = await calculator.initiate(instruction=instruction,
71
- context=context,
72
- model="gpt-4-1106-preview")
73
-
74
- print(f"Calculation Result: {result}")
75
- ```
76
-
77
- Visit our notebooks for our examples.
78
-
79
- ### Community
80
-
81
- We encourage contributions to LionAGI and invite you to enrich its features and capabilities. Engage with us and other community members on [Discord](https://discord.gg/ACnynvvPjt)
82
-
83
- ### Citation
84
-
85
- When referencing LionAGI in your projects or research, please cite:
86
-
87
- ```bibtex
88
- @software{Li_LionAGI_2023,
89
- author = {Haiyang Li},
90
- month = {12},
91
- year = {2023},
92
- title = {LionAGI: Towards Automated General Intelligence},
93
- url = {https://github.com/lion-agi/lionagi},
94
- }
95
- ```
96
- ### Requirements
97
- Python 3.9 or higher.
@@ -1,21 +0,0 @@
1
- lionagi/__init__.py,sha256=xDpKByaLKXCmkCpMcRNuEEJqt8B77FCmg0n99JIhv_E,810
2
- lionagi/version.py,sha256=6Qw9hRq6csqdj5snF0TysZZtzmHEBPYB_RC0hwEZRW0,24
3
- lionagi/api/OAIService.py,sha256=dc1ChuctJiI9_G_8jqioM_qTIiUCvE7PbCb7q-DOu7M,10837
4
- lionagi/api/__init__.py,sha256=iKmyDQGe4HrCjcwhYU4Iy1f4HPBFQzvhctq8digQeEc,118
5
- lionagi/config/__init__.py,sha256=M1vm17IciCCRVuVA6HaLE-6nPkiWvBv60p6dtE0IxVs,139
6
- lionagi/config/llmconfig.py,sha256=fv6Qtj47DjZDB4vNSiA_T2wzPcJjaYj4e3lCYdU1tgk,352
7
- lionagi/config/oaiconfig.py,sha256=ElSLr7RoKgA-UBy-j170GGB4h6OdZTV8u0I9yf-VkGc,431
8
- lionagi/session/__init__.py,sha256=rrE7Vz8xDMzeIYJesXIiukIM38ZLIr-zwoUqFD-_SsI,161
9
- lionagi/session/conversation.py,sha256=dedqlGEfIT26WfTJhBOlYWpz_-BFad1BkzIya2mkFwA,3436
10
- lionagi/session/message.py,sha256=exQa9_kbRAa5T4l3CG29oEkMx7X-eV6AK-zyw6JIWvc,2647
11
- lionagi/session/session.py,sha256=KwYS4P3qSyns05UijLjM_D7Psd8XKWHWxJX4Wu5MvZQ,6283
12
- lionagi/utils/__init__.py,sha256=l9esN5ty5QpNrHI1ZbxfK1c2SwrLVfZgzqRk6bd8Ha8,943
13
- lionagi/utils/api_util.py,sha256=mnqSJuHb3fHNir84svULGeU0BYZ2FlZSK_1uJX0_Wig,15118
14
- lionagi/utils/doc_util.py,sha256=kZ3qRIKc5kAXFjeR8Z6oDzM4vRQVDw6rG5YDavme2zQ,12461
15
- lionagi/utils/log_util.py,sha256=qbmaZxiX_bKY-LLaZcpMbTwi3aeBcK9-Lc93vkLIBuk,3103
16
- lionagi/utils/sys_util.py,sha256=Ni14tahUbB-C9M5cvh7wQdAFSW797j1uyyze9gDbwbg,27861
17
- lionagi-0.0.103.dist-info/LICENSE,sha256=TBnSyG8fs_tMRtK805GzA1cIyExleKyzoN_kuVxT9IY,11358
18
- lionagi-0.0.103.dist-info/METADATA,sha256=v5NyCKa30cBQ0lgkGIzJn264xMxQnXNQJOVsqhn0q3o,3958
19
- lionagi-0.0.103.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
20
- lionagi-0.0.103.dist-info/top_level.txt,sha256=szvch_d2jE1Lu9ZIKsl26Ll6BGfYfbOgt5lm-UpFSo4,8
21
- lionagi-0.0.103.dist-info/RECORD,,