Meru Python API
Project description
Install: pip install meru-app
from meru_app import meru
Add API Key
meru.api_key = 'YOUR_API_KEY'
Create index
meru.createIndex( file_url = 'YOUR_FILE_URL', index_name = 'YOUR_INDEX_NAME' # Optional )
Get index
meru.getIndex( file_id = 'YOUR_FILE_ID' )
Delete index
meru.deleteIndex( file_id = 'YOUR_FILE_ID' )
Predict
meru.predict( file_id = 'YOUR_FILE_ID', prompt = 'YOUR_PROMPT', temperature = 'YOUR_TEMPERATURE', # Optional max_tokens = 'YOUR_MAX_TOKENS', # Optional similarity_top_k = 'YOUR_SIMILARITY_TOP_K' # Optional )
Get prediction
meru.getPrediction( predict_id = 'YOUR_PREDICT_ID' )
Delete prediction
meru.deletePrediction( predict_id = 'YOUR_PREDICT_ID' )
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 meru_app-1.0.2.tar.gz.
File metadata
- Download URL: meru_app-1.0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c24113c09be60a36682f919945b796a4b9c6db5b82666e90f44da6460fff84c0
|
|
| MD5 |
8573622446d582c618c640d40f969143
|
|
| BLAKE2b-256 |
44f673d83e31a77e6602a9557d2ee5794c0db924e2217e53184d6a21564677e9
|
File details
Details for the file meru_app-1.0.2-py3-none-any.whl.
File metadata
- Download URL: meru_app-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ed9e91c18f3e3a9273984bee128b03508c99bf7858174217287ff51afcb7fd
|
|
| MD5 |
b580b3762118a22c9b4b66c7b0eb7111
|
|
| BLAKE2b-256 |
17eb268e3b864a9ec5821a180b66173f2f4ad253a8ff5a6b3b1efe9c763d7d70
|