Skip to main content

llama-index llms netmind integration

Project description

LlamaIndex Llms Integration: Netmind

Installation

To install the required package, run:

pip install llama-index-llms-netmind

Setup

  1. Set your Netmind API key as an environment variable. Visit https://www.netmind.ai/ and sign up to get an API key.
import os

os.environ["NETMIND_API_KEY"] = "you_api_key"

Basic Usage

Generate Completions

from llama_index.llms.netmind import NetmindLLM

llm = NetmindLLM(
    model="meta-llama/Llama-3.3-70B-Instruct", api_key="your api key"
)

resp = llm.complete("Is 9.9 or 9.11 bigger?")
print(resp)

Chat Responses

To send a chat message and receive a response, create a list of ChatMessage instances and use the chat method:

from llama_index.core.llms import ChatMessage

messages = [
    ChatMessage(
        role="system", content="You are a pirate with a colorful personality"
    ),
    ChatMessage(role="user", content="What is your name"),
]
resp = llm.chat(messages)
print(resp)

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

llama_index_llms_netmind-0.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

llama_index_llms_netmind-0.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_llms_netmind-0.3.0.tar.gz.

File metadata

  • Download URL: llama_index_llms_netmind-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_llms_netmind-0.3.0.tar.gz
Algorithm Hash digest
SHA256 be6b4843eed12099e8c8395d02fdbbc81c6cc3536e9813e99554ffbda9445a12
MD5 ab39b5e2cbabd0172959a2204e254d7a
BLAKE2b-256 7687a22ef3509b4aadcc23f32037bea9f0402594140da7361583d32ad8020000

See more details on using hashes here.

File details

Details for the file llama_index_llms_netmind-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_llms_netmind-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_llms_netmind-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d59fee230d8280c7654409fb3905c44e5978d650522a618eb074e12efb7ad0a5
MD5 f42adf3f23f0c7babbfafd9ffa8b5b98
BLAKE2b-256 1cbc720e41255a34a12c78a5535911894f84eb151e3bc909a48660ab53a0db9d

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