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.3.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file cerina-0.2.3.tar.gz
.
File metadata
- Download URL: cerina-0.2.3.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6404d76157a0598933dad79e9faa5a92babdb63f4da32021d26b3bf9c6c57dd3 |
|
MD5 | bca43502ad31803ee935bf39e511af4c |
|
BLAKE2b-256 | a5760c7a67b2fbdfe4c06d0a45405cf1fb16bf696f144565673053cbaac23cd4 |
File details
Details for the file cerina-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: cerina-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.8 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 | df96209181ac5e82b6e9bd8908fa6073dd5e85b0be41bb6309b8f03a9e8c13f5 |
|
MD5 | 18f78501fb7f64568625e2a781689104 |
|
BLAKE2b-256 | 94fdeeb3c16495f9dadd5cb09e7bf907e7197a87c49f4fd3cec95017b9464e3c |