The Luminous series is a family of large language models.
This example goes over how to use LangChain to interact with Aleph Alpha models
%pip install -qU langchain-community
%pip install --upgrade --quiet aleph-alpha-client
from getpass import getpass
ALEPH_ALPHA_API_KEY = getpass()
from langchain_community.llms import AlephAlpha
from langchain_core.prompts import PromptTemplate
template = """Q: {question}
A:"""
prompt = PromptTemplate.from_template(template)
llm = AlephAlpha(
model="luminous-extended",
maximum_tokens=20,
stop_sequences=["Q:"],
aleph_alpha_api_key=ALEPH_ALPHA_API_KEY,
)
question = "What is AI?"
llm_chain.invoke({"question": question})
' Artificial Intelligence is the simulation of human intelligence processes by machines.\n\n'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4