Because sometimes, even AI needs a cheat sheet
This project builds a Retrieval-Augmented Generation (RAG) pipeline that answers questions about Shadows of Eldoria - a fantasy story I wrote with ChatGPT. Think of it like teaching a robot to read a book and then quiz it. The pipeline uses Langflow (a visual tool for building AI workflows), Astra DB (for storage), and Ollama (to run AI models locally).
The twist? It works on your laptop. No cloud required.
Let's get this show on the road
ollama pull llama3.2:latest ollama pull all-minilm:latest ollama serve # Keep this running!
Pro tip: If your laptop starts humming like a microwave, you're doing it right.
pip install langflow langflow run # This starts the UI at http://localhost:7860
3. Load the Pipeline
I used a 3,000-word fantasy story, but you could use anything:
Imagine Google Translate, but for human → robot.
Chunks get saved in Astra DB. When you ask a question:
Customization options even your cat could use
Don't like Astra DB? Try:
How? Just update the "Vector Store" node in Langflow.
Llama3.2 too big? Use:
Change the "OllamaModel" component with any other model component.
Ollama not your jam? Switch to OpenAI embeddings. Just change the "Embeddings" node.
The "uh-oh" list!
Right now, I judge answers by reading them. Not exactly science.
It lives on my laptop. To share it, I'd need to:
What if the database crashes mid-query? No alerts exist.
Baby step: Add logging.
Built for developers.
How fast is it? No idea.
Beyond my laptop's overheating issues
Customer Support
Train it on your FAQ docs.
Education
Let students query textbooks naturally.
Personal Use
I once built a version that explains my own notes back to me.
The big picture? This is LEGO for AI pipelines.
What should you do next?
Follow the instructions above.
Try uploading a Wikipedia article instead of a story.
Swap Llama3.2 for Mistral. Notice speed differences?
Remember: AI isn't magic. It's just a very eager intern.
Building this felt like teaching a parrot to read. Slow. Frustrating. But when it finally answered "Who is the villain in Eldoria?" correctly? Chef's kiss.
Good AI isn't about smart models. It's about smart pipelines.
Now go build yours.