# 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.&#x20;

#### 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

<figure><img src="/files/j0ePSo1tionbhRIb1yu9" alt=""><figcaption></figcaption></figure>

#### 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](/genai-stack-1/components/large-language-models.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aiplanet.com/genai-stack-1/quickstart/core-concepts/large-language-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
