A simple SDK for the mmRag Application, the github for the app can be found here: https://github.com/marcoslashpro/multimodal-rag.git
Project description
MmRAG-SDK
MmRAG-SDK is a simple Python SDK designed to make testing easier by eliminating the need to send HTTP requests from the terminal or script them manually.
🚀 How to Use
- Set Up Your Environment:
I recommend using uv to manage your environment:
uv init .
uv add mmragsdk
Otherwise, with pip:
python3 -m venv .venv
. .venv/bin/activate
pip install mmragsdk
That’s it! Your environment is ready.
- Initialize the SDK
Import and initialize the Client:
from mmragsdk import Client
client = Client(token='your_token_here')
💡 Note: To obtain a token, please email me at tambascomarco35@gmail.com and I will generate one for you.
Available Methods
# Send a prompt
client.chat(prompt="your prompt here")
# - prompt: str
# - Raises ValueError if the prompt is empty
# Upload a file
client.upload(file_path="path/to/your/file.txt")
# - file_path: str
# - Raises FileNotFoundError if the file does not exist
# Perform a search
client.search(query="your search query")
# - query: str
# - Raises ValueError if the query is empty
# Clean storage
client.clean()
# - No parameters
# - ⚠️ DANGER: This method clears all stored data
🎉 Have Fun!
Enjoy a smooth and hassle-free testing experience with MmRAG-SDK. If you have questions or suggestions, feel free to reach out!
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 mmragsdk-1.0.8.tar.gz.
File metadata
- Download URL: mmragsdk-1.0.8.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83ed5b9ace45f41b290d252c3bb0f51c3ce3bb5728187d3c706f65def6fe93f1
|
|
| MD5 |
b6b3132fc7ce315865d45870c23074e6
|
|
| BLAKE2b-256 |
a2e89ec5c49ccddd696844131f2c6e531baf516bd6156d5d8e28aad3a7f0e329
|
File details
Details for the file mmragsdk-1.0.8-py3-none-any.whl.
File metadata
- Download URL: mmragsdk-1.0.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4c2dee535f39531cc245f9da5267b8cef1603503e7433a268f135bbd4e1a33
|
|
| MD5 |
9a68ed13955be309ee7e5d134ed6f035
|
|
| BLAKE2b-256 |
c12c60e75b7d183273c757c0b53af597e434f1f5d596e581c10e95f7aa03803c
|