Skip to main content

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


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.7.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

cerina-0.2.7-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file cerina-0.2.7.tar.gz.

File metadata

  • Download URL: cerina-0.2.7.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cerina-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a92f293a5b688679a67dd2f9e8ddab0b54635ad9fb634e0316910a988df3e37b
MD5 2917bdc6ed073d02e7035f94aea79951
BLAKE2b-256 6d1fa5664b0cb16e849502818419c7205f797642a359e39b590112186c2744e3

See more details on using hashes here.

File details

Details for the file cerina-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: cerina-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cerina-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ab29b2f67d273abcfb23a09aec6e3ca020b34403ec27ad47769beb00900cafe1
MD5 961ead337fce1fcf39783b76a1c63dac
BLAKE2b-256 17c3ad2922c9309161da9147ecc9a5d894dd5320621e96b87a0077c3f899c06c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page