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_langchain 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_langchain 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_langchain 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_langchain import EmbeddingModel

model = EmbeddingModel()
response = model.embed_query('What is an ally?')
print(response)

Metadata

Release files for ally-ai-langchain 0.5.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-langchain 0.5.0
File Size Uploaded Provenance Actions
ally_ai_langchain-0.5.0.tar.gz 3.0 kB Without provenance Details for ally_ai_langchain-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / ally_ai_langchain-0.5.0.tar.gz

Download URL ally_ai_langchain-0.5.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1448a5b4af2cc51e41a322eaa05e2261269a6d99dd56698075cf2d7a4dda6ed4
BLAKE2b-256 checksum
How to use checksums
1ebf248037ee3c13d8cac1bb1940bbb8b9cd2326ab4d0d391b3e7f26c94ff058
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_langchain-0.5.0-py3-none-any.whl

Download URL ally_ai_langchain-0.5.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03a904ef2dbedc3d613b113f61f7c2044f8f79e0b2b5cbfdaf17d6d5c85dfd4a
BLAKE2b-256 checksum
How to use checksums
c23edca2cd52c37e0f64329221cde248a2807b122c2b7ee820e3d9f7c60c84a7
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-langchain 0.5.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