Skip to content

qualcomm/langchain-qualcomm-inference-suite

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.

About

LangChain integration with Qualcomm AI Inference Suite

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors