This templates is a question answering application with a RAG architecture using LlamaIndex, openAI. It provides a playground to experiment with different prompts and parameters in LlamaIndex and evaluate the results. It runs with agenta. Agenta is an open-source LLMOps platform that allows you to 1) create a playground from the code of any LLM app to quickly experiment, version, and collaborate in your team 2) evaluate LLM applications, and 3) deploy applications easily.
- Install the agenta CLI
pip install -U agenta
- Either create an account in agenta cloud or self-host agenta
git clone https://github.com/Agenta-AI/qa_llama_index_playground.git
cd qa_llama_index_playground
agenta init
Create a .env file by copying the .env.example file and add your openAI API key to it.
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
agenta variant serve app.py