Skip to main content

An integration package connecting Qualcomm AI Inference Suite and LangChain

Project description

langchain-qualcomm-inference-suite

This package contains the LangChain integration with Qualcomm AI Inference Suite

Installation

pip install -U langchain-qualcomm-inference-suite

And you should configure credentials by setting the following environment variables:

  1. You must set the environment variable IMAGINE_API_KEY to your personal Imagine API key.

  2. You must set the environment variable IMAGINE_API_ENDPOINT pointing to the endpoint you are using.

Chat Models

ChatQIS class exposes chat models from Qualcomm AI Inference Suite.

from langchain_qualcomm_inference_suite import ChatQIS

llm = ChatQIS()
llm.invoke("Sing a ballad of LangChain.")

Embeddings

QISEmbeddings class exposes embeddings from Qualcomm AI Inference Suite.

from langchain_qualcomm_inference_suite import QISEmbeddings

embeddings = QISEmbeddings()
embeddings.embed_query("What is the meaning of life?")

LLMs

QISLLM class exposes LLMs from Qualcomm AI Inference Suite.

from langchain_qualcomm_inference_suite import QISLLM

llm = QISLLM()
llm.invoke("The meaning of life is")

License

langchain-qualcomm-inference-suite is licensed under the BSD-3-clause License. See LICENSE for the full license text.

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

langchain_qualcomm_inference_suite-1.0.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file langchain_qualcomm_inference_suite-1.0.0.tar.gz.

File metadata

File hashes

Hashes for langchain_qualcomm_inference_suite-1.0.0.tar.gz
Algorithm Hash digest
SHA256 272f120bc07bdf8277bfd6d65d6cd984734edce26fe138679dc07779ed673e9b
MD5 29451e250b5c58f96aa2d08513789be2
BLAKE2b-256 070b06ea58c1a96aebd00b6212426e02fcd83c7ff56c3f9b31c9d222fc86f55d

See more details on using hashes here.

File details

Details for the file langchain_qualcomm_inference_suite-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_qualcomm_inference_suite-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 064031a8f5cd4fcbfc667239ca66a5a8224b6f1dd825a1c85fb4a123a1e13382
MD5 eb0cf82753342b36fb80915a23e43734
BLAKE2b-256 b80590c75c0defa5b8cd78e8890f97dc4eb4be0291d269bd3a69c4aadf962671

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