Combining external data and an LLM offers the best of both worlds: accuracy and relevance. External data provides up-to-date information, while an LLM can generate text based on input prompts. Together, they enable a system to respond helpfully to a wider range of queries.
Mirascope simplifies this combination with Pythonic code. In the example above, we use an LLM to process natural language prompts and query the database for data.