Skip to main content

Ally AI

How to use

Config File

llm:
  api_key: '<private-key>'
  api_version: "<api-version>"
  endpoint: "<endpoint>"
  model: "<model-name>"
  deployment_name: '<deployment-name>'
  temperature: 0.7
  streaming: true

embeddings:
  api_key: '<private-key>'
  api_version: "<api-version>"
  endpoint: "<endpoint>"
  model: "<model-name>"
  deployment_name: '<deployment-name>'

Create LLM

Use Default Settings in LLM

from ally_ai.llamaindex import LLM

llm = LLM()
response = llm.invoke('What is an ally?')
print(response)

Use Custom Settings in LLM

my_llm:
  api_key: '<private-key>'
  api_version: "<api-version>"
from ally_ai.llamaindex import LLM, Settings

settings = Settings(section='my_llm')
llm = LLM(settings=settings)
print(llm.settings.path)
print(llm.settings.section)

Override Settings in LLM

from ally_ai.llamaindex import LLM, Settings

settings = Settings(section='my_llm', api_key='<new-api-key>')
llm = LLM(settings=settings)
response = llm.invoke('What is an ally?')
print(response)

How to Create Embeddings

from ally_ai.llamaindex import Embeddings

embeddings = Embeddings()
response = embeddings.embed_query('What is an ally?')
print(response)

Metadata

Release files for ally-ai-llamaindex 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ally-ai-llamaindex 0.1.0
File Size Uploaded Provenance Actions
ally_ai_llamaindex-0.1.0.tar.gz 3.1 kB Without provenance Details for ally_ai_llamaindex-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ally-ai-llamaindex 0.1.0
File Interpreter ABI Platform Actions
ally_ai_llamaindex-0.1.0-py3-none-any.whl Python 3 none any Details for ally_ai_llamaindex-0.1.0-py3-none-any.whl

Total release size: 7.2 kB

Release files / ally_ai_llamaindex-0.1.0.tar.gz

Download URL ally_ai_llamaindex-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
af09d54e4e714e1d45a4504ba2706f5e3caf68cabe7cafb70d6441432a2e7567
BLAKE2b-256 checksum
How to use checksums
83e68193697341be656c509501ca23fc129649ba1e465ac5d98ba89e807e2614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.10

Release files / ally_ai_llamaindex-0.1.0-py3-none-any.whl

Download URL ally_ai_llamaindex-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e19f93f82f1da930ea7014ef92dc7ef3eb551cb5dbdd70888a4e5f19d350b139
BLAKE2b-256 checksum
How to use checksums
1ee3648f6f2ad0dbb77b63093b290d0cf05ccb801a5420bed05f558a2fd74e30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.10

Security for ally-ai-llamaindex 0.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page