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 = 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()
Release files for cerina 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cerina-0.2.8.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cerina-0.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / cerina-0.2.8.tar.gz
| Download URL | cerina-0.2.8.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c8a0379c3e795afa4cc87079bb91a393a806988d89db3cefb09312ab163a521
|
|
BLAKE2b-256 checksum How to use checksums |
e110bbb944f0b35851e465eea7def48c8682dcc5537d15f7247e1f7266929a3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / cerina-0.2.8-py3-none-any.whl
| Download URL | cerina-0.2.8-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c09920a9a336008238870a912c5bcc9e8d56c6df3a29dffcd437068e5bc3c0db
|
|
BLAKE2b-256 checksum How to use checksums |
a2915893b604d702675393ab3c4f0bc991e21b27430ac7fd4d9eaab0b1ddc676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|