Large Language Model

The Vector store acts as a retriever, supplying relevant data as context to the Large Language Model. Large Language Models (LLMs), processes contextual input and prompts to generate coherent and contextually appropriate responses.An LLM, or Large Language Model, is a fundamental element of GenAI Stack as the generator RAG model. This offers a standardized interface to seamlessly engage with various LLMs from providers like OpenAI, Anthropic, Cohere, and HuggingFace.

Universal Interface for LLMs

GenAI Stack doesn't keep its own LLMs in-house. Instead, it has something like a universal remote control that lets it connect with LLMs from big names like OpenAI, Anthropic, Cohere, and HuggingFace. This means you can pick and choose the best brain for the job without worrying about if it will fit with your setup. The LLM class in GenAI Stack is this universal remote, making sure that no matter which LLM you're talking to, the conversation stacks smoothly.

Why This Matters

This setup is great because it gives you flexibility. You're not stuck with just one LLM; you can use different ones for different tasks, all through a simple, consistent interface. This makes your AI smarter and more adaptable, ready to tackle a wide range of questions with the best knowledge available. Whether you're building a chatbot, a research assistant, or something entirely new, the GenAI Stack makes it easier to bring your ideas to life with the power of LLMs.

Example: ChatOpenAI LLM -> Chain

Conclusion:

In this example we have shown only the OpenAI LLM but there are a bunch of other LLMs you can use as well . To know the list of LLMs supported by GenAI Stack you can refer the component documentation here.

Last updated