Skip to main content

llama-index llms cortex integration

Project description

LlamaIndex Llms Integration: Cortex

Overview

Integrate with Snowflake Cortex API.

Installation

pip install llama-index-llms-cortex

Example

import os
from llama_index.llms.cortex import Cortex


llm = Cortex(
    model="llama3.2-1b",
    user=os.environ["YOUR_SF_USER"],
    account=os.environ["YOUR_SF_ACCOUNT"],
    private_key_file=os.environ["PATH_TO_SF_PRIVATE_KEY"],
)

completion_response = llm.complete(
    "write me a haiku about a snowflake", temperature=0.0
)
print(completion_response)

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_cortex-0.1.0.tar.gz (5.1 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_cortex-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_llms_cortex-0.1.0.tar.gz.

File metadata

  • Download URL: llama_index_llms_cortex-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for llama_index_llms_cortex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e47c8f0ee25020a3ef3754234ec96d603eb8d00f13fa43a913939b3cfd87ce94
MD5 d0dff267e17452f67a2e6d092c7c0f2c
BLAKE2b-256 c5f2c2b2cee1bc0ea167c66e6a06e1d0d31c6b49e32e2c4c89096cb47019bb48

See more details on using hashes here.

File details

Details for the file llama_index_llms_cortex-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_llms_cortex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84d4be939256a30d5b55bdbe110ead6126caabaa55d4cb563a28aac1b88b1303
MD5 38ac660629981ae5f4975025886fada5
BLAKE2b-256 dd60b1440d66ef0d9a581344a52bae58b6558f9ca429b70a2ca36a3926723f3c

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