A flexible chatbot package with vector embeddings and prompt handling using Ollama and FAISS
Project description
🧠 mypackage_anshita
mypackage_anshita is a Python package built with ❤️ using Ollama models. It supports:
- 💬 Prompt-based text generation using models like
gemma:2b,llama2, and more - 🔍 Vector-based document embedding + semantic search using FAISS
- ⚙️ Model flexibility for generation and embeddings
🚀 Installation
Install directly from PyPI:
pip install mypackage-anshita
📌 **Why this?** → Shows users how to install your package easily.
---
### ✅ 3. Features
```markdown
## 🔥 Features
- `PromptRunner` class for prompt-based responses from various models
- `DocumentEmbedder` class for embedding documents and performing vector-based search
- Uses Ollama + FAISS + NumPy
- Tested with Gemma, LLaMA2, and other local models via Ollama
## 💡 Usage Example
### Generate Text with PromptRunner
```python
from mypackage_anshita import PromptRunner
runner = PromptRunner(model='gemma:2b')
response = runner.run_prompt("What is the theory of relativity?")
print(response)
from mypackage_anshita import DocumentEmbedder
docs = ["Marie Curie won two Nobel Prizes.", "Einstein created the theory of relativity."]
embedder = DocumentEmbedder()
embedder.embed_text(docs)
results = embedder.search("radioactivity")
print(results)
📌 **Why this?** → Shows users how to *actually use* your package in code.
---
### ✅ 5. Author Info
```markdown
## 👩💻 Author
**Anshita Bhatnagar**
Made with 💕 during internship
Built using LangChain, Ollama, FAISS and Streamlit
## 📄 License
MIT License
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
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 mypackage_anshita-0.1.1.tar.gz.
File metadata
- Download URL: mypackage_anshita-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf7777b4375feadc3bd62e2ac74b4f47cd3f4d64774208f40c12ce21f9943c79
|
|
| MD5 |
6407c8c2c68837e354739b21b782808b
|
|
| BLAKE2b-256 |
3419b2f5c56fb0a08b14296cd2548bf91805993568f1d913d90387f702fbed8c
|
File details
Details for the file mypackage_anshita-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mypackage_anshita-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb021a446862ff60bc73d3fb8093cc09b29059fcf22b031e375c56ff82bf4344
|
|
| MD5 |
29ac6f81c048c5f9aba7003c1ba8a1a9
|
|
| BLAKE2b-256 |
8d7ef522073f6e2010b22952d1ad0320c14a9774340ea67d04df0f5f05df7c59
|