LlamaIndex Llms Integration: Monsterapi
MonsterAPI LLM.
Monster Deploy enables you to host any vLLM supported large language model (LLM) like Tinyllama, Mixtral, Phi-2 etc as a rest API endpoint on MonsterAPI's cost optimised GPU cloud.
With MonsterAPI's integration in Llama index, you can use your deployed LLM API endpoints to create RAG system or RAG bot for use cases such as: - Answering questions on your documents - Improving the content of your documents - Finding context of importance in your documents
Once deployment is launched use the base_url and api_auth_token once deployment is live and use them below.
Note: When using LLama index to access Monster Deploy LLMs, you need to create a prompt with required template and send compiled prompt as input.
See LLama Index Prompt Template Usage example section for more details.
see (https://developer.monsterapi.ai/docs/monster-deploy-beta) for more details
Once deployment is launched use the base_url and api_auth_token once deployment is live and use them below.
Note: When using LLama index to access Monster Deploy LLMs, you need to create a prompt with reqhired template and send compiled prompt as input. see section LLama Index Prompt Template Usage example for more details.
Examples:
pip install llama-index-llms-monsterapi
-
MonsterAPI Private LLM Deployment use case
from llama_index.llms.monsterapi import MonsterLLM llm = MonsterLLM( model = "<Replace with basemodel used to deploy>", api_base="https://ecc7deb6-26e0-419b-a7f2-0deb934af29a.monsterapi.ai", api_key="a0f8a6ba-c32f-4407-af0c-169f1915490c", temperature=0.75, ) response = llm.complete("What is the capital of France?") ```
-
Monster API General Available LLMs
from llama_index.llms.monsterapi import MonsterLLM llm = MonsterLLM(model="microsoft/Phi-3-mini-4k-instruct") response = llm.complete("What is the capital of France?") print(str(response)) ```
Metadata
Release files for llama-index-llms-monsterapi 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_llms_monsterapi-0.6.0.tar.gz | 5.0 kB | Without provenance | Details for llama_index_llms_monsterapi-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_llms_monsterapi-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_llms_monsterapi-0.6.0-py3-none-any.whl |
Total release size: 10.2 kB
Release files / llama_index_llms_monsterapi-0.6.0.tar.gz
| Download URL | llama_index_llms_monsterapi-0.6.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
443977a16b5948b2135ed847720d0fabe39916e05c1debdf23030cbd7be12aa2
|
|
BLAKE2b-256 checksum How to use checksums |
7e5b59075036de2c50dcc3538c7677f71bf669fd13cdc8a6e53f5bfe188ba905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_llms_monsterapi-0.6.0-py3-none-any.whl
| Download URL | llama_index_llms_monsterapi-0.6.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b5a77efa1af7553b309408b6d2b260a422e97b7ccbe53ba3f4555bb750ed958
|
|
BLAKE2b-256 checksum How to use checksums |
9eccfa830840132d8e8b876efcf69a4208a2c542bdb0e418dfef211dc07a1dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-llms-monsterapi 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.