from langchain.llms import OpenAI, HuggingFaceHub | |
prompt = "Explain me briefly what's KDnuggets!" | |
gpt = OpenAI(model_name="text-ada-001") | |
mistral = HuggingFaceHub(repo_id="mistralai/Mistral-7B-v0.1", huggingfacehub_api_token=HF_API_KEY) | |
print("GPT LLM:", gpt(prompt), "\n\nHF-Mistral LLM:", mistral(prompt)) |