Next-gen Sync & Async AI agents with 100+ functionalities
Project description
Cerina Package
Overview
Cerina is a package that provides functionalities for different llm completions, Advanced AI Agents and Agentic search at free of cost. Explore more below and give a star.
Installation
To install the package, run:
pip install -U cerina
Basic Chat Integration
Use our llm's into your applications at free of cost
- Synchronous
from cerina import Completion
completion = Completion()
prompt = "What are the benefits of using AI in education?"
response = await completion.create(prompt)
print("Response from API:", response)
- Asynchronous Example
import asyncio
from cerina import Completion
completion = Completion()
async def main():
query = "which is the most advanced version of gpt?"
response = await completion.create_async(query)
print(response)
if __name__ == "__main__":
asyncio.run(main())
Integrate Search Functions with GPT
import asyncio
from cerina import IntegratedSearchGPT
async def main():
integrated_search_gpt = IntegratedSearchGPT()
query = "what is the dollar price now in inr?"
response = await integrated_search_gpt.generate_with_search(query)
print("Response from API:", response)
if __name__ == "__main__":
asyncio.run(main())
Search Text
from cerina import print_search_results, search_text, search_images
def main():
query_text = "Hetc"
print("Text Search Results:")
print_search_results(query_text, search_text)
if __name__ == "__main__":
main()
Search Image
from cerina import print_search_results, search_text, search_images
def main():
query_image = "cats"
print("Image Search Results:")
print_search_results(query_image, search_images)
if __name__ == "__main__":
main()
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
cerina-0.2.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file cerina-0.2.1.tar.gz
.
File metadata
- Download URL: cerina-0.2.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcc5e2d88bc174f406752dc13b1e5aec48ea979beca03aa764e8ab41f7b9f11 |
|
MD5 | ebbdcf07f6d2cf6743bbd42c18caf674 |
|
BLAKE2b-256 | 8736f54bdf7613a7badff2dde85cc4a7d314372531cbc99b9e189eef70b61363 |
File details
Details for the file cerina-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: cerina-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026114df0d0dc7bc9438da6b3b1c89adbf0cbf108a7dba4974f642cc4297a227 |
|
MD5 | 0e6dfa2ba5cee2e914ddb939aba83d2d |
|
BLAKE2b-256 | d803d79cbb557ca4d1de728aa2fb30dc86db971a29d4bfc3ccf216b08f579f2c |