Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meru_app-1.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meru_app-1.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

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

Hashes for meru_app-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c24113c09be60a36682f919945b796a4b9c6db5b82666e90f44da6460fff84c0
MD5 8573622446d582c618c640d40f969143
BLAKE2b-256 44f673d83e31a77e6602a9557d2ee5794c0db924e2217e53184d6a21564677e9

See more details on using hashes here.

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

Hashes for meru_app-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ed9e91c18f3e3a9273984bee128b03508c99bf7858174217287ff51afcb7fd
MD5 b580b3762118a22c9b4b66c7b0eb7111
BLAKE2b-256 17eb268e3b864a9ec5821a180b66173f2f4ad253a8ff5a6b3b1efe9c763d7d70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page