A retrieval-augmented generation (RAG) chatbot that answers questions about The Sweet Fellowship, using MiniMax as the LLM and local HuggingFace embeddings.
- Python 3.14+
- uv
- A MiniMax API key
cp .env.example .env
# Edit .env and fill in your MINIMAX_API_KEY
uv syncuv run main.pyOn first run, documents from ./docs are indexed and cached in ./persist. Subsequent runs load from the cache and start instantly.
Press Enter with a blank input to exit.
Delete the ./persist folder to force a full re-index on the next run:
rm -rf persist/uv run main.py
/home/rafaelhdr/Projects/rag-exercise/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:2274: UnsupportedFieldAttributeWarning: The 'validate_default' attribute with value True was provided to the `Field()` function, which has no effect in the context it was used. 'validate_default' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
warnings.warn(
Loading llama_index.core.storage.kvstore.simple_kvstore from ./persist/docstore.json.
Loading llama_index.core.storage.kvstore.simple_kvstore from ./persist/index_store.json.
Ask your question about The Sweet Fellowship (or press Enter to exit): What is this company about?
The Sweet Fellowship is an artisan confectionery company founded in 2009, headquartered in Hobbiton, New Zealand. They specialize in crafting handmade sweets, chocolates, and candies using traditional recipes refined by modern techniques and a deep love for the craft.
Their mission is "to bring joy to every corner of Middle Earth, one sweet at a time." They believe that a single piece of candy can carry an entire memory—a birthday, a reunion, a quiet afternoon by the fire—and they strive to create confections so remarkable that they become part of people's stories.
The company is guided by six core values: courage, loyalty, curiosity, humility, generosity, and integrity. Every product is made in small batches by hand using carefully sourced ingredients, including real butter, single-origin cocoa, natural fruit extracts, and cane sugar. They refuse to use artificial flavors or take shortcuts on quality.
Their 2035 vision aims to become the most beloved artisan confectionery brand in the Southern Hemisphere while being recognized globally. This includes expanding to 50 flagship stores worldwide, launching The Sweet Fellowship Academy in 2027, achieving a fully regenerative supply chain by 2030, and reaching customers in 40 countries through their online shop by 2028.
The company is led by a team of nine, with Gandalf Greyhame as CEO and Founder, supported by specialists in product development, operations, sales, branding, confectionery, finance, customer experience, and retail. They offer benefits like unlimited tasting privileges, annual team offsites, and a paid apprenticeship program for production staff.
Ask your question about The Sweet Fellowship (or press Enter to exit): How many people are working here?
Based on the provided context, the documents mention that there are nine founding fellowship members who still work together every day. However, the total current workforce size is not specified in the available documents.
Ask your question about The Sweet Fellowship (or press Enter to exit): Who are them?
Based on the provided context, "them" refers to the nine members of The Sweet Fellowship's founding team:
1. **Gandalf Greyhame** — CEO & Founder
2. **Frodo Baggins** — Head of Product Development
3. **Samwise Gamgee** — Head of Operations
4. **Aragorn Elessar** — Chief Sales Officer
5. **Legolas Greenleaf** — Brand & Creative Director
6. **Gimli son of Glóin** — Master Confectioner
7. **Boromir of Gondor** — Chief Financial Officer
8. **Meriadoc Brandybuck (Merry)** — Customer Experience Manager
9. **Peregrin Took (Pippin)** — Head of Retail & Pop-Up Events
The company describes these individuals as "the team behind every sweet," emphasizing that their "greatest ingredient is the people who show up every day with skill, heart, and a little bit of magic."
Ask your question about The Sweet Fellowship (or press Enter to exit):
Thanks, goodbye!