Zunno package created by charu
Project description
my_package_charu
my_package_charu is a custom Python package for interacting with large language models and generating vector embeddings using a locally running Ollama instance. It includes:
Zunno: A simple chat interface with LLMs (like Gemma:2b)ZunnoEmbeddings: Generate vector embeddings for any text using models likenomic-embed-text
Installation
pip install my_package_charu
Make sure you have Ollama installed and running models like gemma:2b or nomic-embed-text
ollama pull gemma:2b
ollama pull nomic-embed-text
Features
- Chat with any LLM using Ollama's HTTP API
- Generate embeddings using Ollama's embedding models
- Plug-and-play classes, easy to integrate into projects
- FastAPI endpoint for Swagger UI
Usage
Chat with a Local LLM
from my_package_charu import Zunno
z = Zunno(model_name="gemma:2b")
z.run()
Generate Vector Embeddings
from my_package_charu import ZunnoEmbeddings
ze = ZunnoEmbeddings()
embedding = ze.get_embedding(model_name="nomic-embed-text", text="hello world")
print(embedding[:5])
Run FastAPI for Swagger UI
uvicorn zunno_embed_server:app --reload
open your browser and go to
http://localhost:8000/docs
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file my_package_charu-0.0.7.tar.gz.
File metadata
- Download URL: my_package_charu-0.0.7.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4dd322bdf882821326d78e6585c9b7f6963ba6a361033a5c3bb7e4d196ff46
|
|
| MD5 |
1695d072bbc3b1c21d8fc74a04977d96
|
|
| BLAKE2b-256 |
07eb1be83e23b5f8147b899da7b17b8baff392baa160c43708b29a795fd9d0af
|
File details
Details for the file my_package_charu-0.0.7-py3-none-any.whl.
File metadata
- Download URL: my_package_charu-0.0.7-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39af92a6de1c5e91bdd04c2f6632ccb9ab4b2aaa0923044867dc6ee745b612c3
|
|
| MD5 |
9d60e6c285abc7990d71188283b25457
|
|
| BLAKE2b-256 |
4b5d59f22a8b2c83d1fbc4acb15d3e4e05d8666aa8f8497efe7d549274265385
|