This package contains the LangChain integration with Qualcomm AI Inference Suite
pip install -U langchain-qualcomm-inference-suiteAnd you should configure credentials by setting the following environment variables:
-
You must set the environment variable
IMAGINE_API_KEYto your personal Imagine API key. -
You must set the environment variable
IMAGINE_API_ENDPOINTpointing to the endpoint you are using.
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.")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?")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")langchain-qualcomm-inference-suite is licensed under the BSD-3-clause License. See LICENSE for the full license text.