Meet Elysia: A new open source Python framework redefines a proxy rag system with decision trees and smarter data processing
If you’ve ever tried building a proxy rag system that actually works well, you know the pain. You feed it some documentation, cross your fingers, and hope it won’t hallucinate when someone asks a simple question. In most cases, you will retract text that has little to no answer request.
Elysia Trying to fix this confusion, they are honestly creative in their approach. This open source Python Framework was built by people at Weaviate and would not only invest more AI in the issue—it completely rethinks how AI agents work with your data.
notes: Python 3.12
What is the problem with most rag systems?
Here’s what drives everyone crazy: the traditional rag system is basically Blind. They accept your question, convert it into a vector, find some “similar” text, and hopefully the best. It’s like asking someone to find a good restaurant while wearing an eye mask – they may be lucky, but they may not.
Most systems also immediately transfer all possible tools to AI, which is like giving you a toddler access to your entire toolbox and expecting them to build bookshelf.
Elysia’s three pillars:
1) Decision tree
Elysia does not give AI agents at once, but guides them at once. Structural nodes for decision making. Think of it as a flowchart that makes real sense. Each step has a context about what happened before and what happened next.
Really cool part? The system shows exactly what path the agent takes and why, so when something goes wrong, you can actually debug it instead of just shrugging and trying again.
When the AI realizes that it can’t do something (such as searching for car prices in a makeup database), it doesn’t just try it forever. It sets a “impossible sign” and keeps going, which sounds obvious, but obviously requires invention.
2) Intelligent data source display
Remember when every AI just spits out text paragraphs? Elysia actually View your data And figure out how to display it correctly. Have e-commerce products? You will get a product card. GitHub issue? You will get the ticket layout. Spreadsheet data? You will get the actual table.
The system first checks your data structure – fields, types, relationships – and then selects one of them seven Format This makes sense.
3) Data expertise
This is probably the biggest difference. Before Elysia searches for anything, Analyze your database To understand what actually exists. It can summarize, generate metadata and select display type. It looks at:
- What kind of field do you have
- What does the data range look like
- How different parts relate to each other
- Search for meaningful
How does it work?

Learn from feedback
Elysia remembers when users say “Yes, it’s helpful” and uses these examples to Improve future responses. But this does – your feedback doesn’t mess with others’ results and can help the system answer better your A specific type of problem.
This means you can use smaller, cheaper models that still bring good results because they are learned from actual success stories.
Meaningful chunking
Most rag systems can use a lot of storage upfront and often produce strange breaks. Elysia Block files only if needed. It first searches for the full document and then can break it down at any time if the document looks relevant but is too long.
This saves storage space and actually works better because the decision to grouping is already informed by what the user actually looks for.
Model routing
Different tasks require different models. Simple problems do not require GPT-4, and complex analysis with tiny models do not work well. Elysia Automatic routing tasks The right model based on complexity saves money and speed up.
getting Started
The setup is very simple:
pip install elysia-ai
elysia start
That’s it. You can get a web interface and a Python framework.
For developers who want to customize things:
from elysia import tool, Tree
tree = Tree()
@tool(tree=tree)
async def add(x: int, y: int) -> int:
return x + y
tree("What is the sum of 9009 and 6006?")
If you have knitted data, it’s easier:
import elysia
tree = elysia.Tree()
response, objects = tree(
"What are the 10 most expensive items in the Ecommerce collection?",
collection_names = ["Ecommerce"]
)
Real-world example: Glowe’s chatbot
this Glowe skin care chat robot platform Use Elysia to handle complex product suggestions. Users can ask “Which product pairs well with retinol but doesn’t irritate sensitive skin?” and get an intelligent response that takes into account ingredient interaction, user preferences, and product availability.
It’s not just keyword matching – it’s the way to understand the context and relationships between ingredients, user history, and product features, which are really hard to code manually.
Summary
Elysia represents Weaviate’s attempt to transcend the traditional Q&A generation rag pattern by combining decision-tree agents, adaptive data performance and learning from user feedback. Not only does it generate text responses, it also analyzes the data structure in advance and selects the appropriate display format while maintaining transparency during its decision-making process. Just like the planned replacement for Weaviate’s planned Verba rag system, it provides a foundation for building more complex AI applications that understand both the user’s requirements and can effectively come up with answers, although whether this translates into meaningful better real-world performance, as it is still in Beta, yet to be seen.
Check Technical details and Github page. Check out ours anytime Tutorials, codes and notebooks for github pages. Also, please stay tuned for us twitter And don’t forget to join us 100K+ ml reddit And subscribe Our newsletter.

Asif Razzaq is CEO of Marktechpost Media Inc. As a visionary entrepreneur and engineer, ASIF is committed to harnessing the potential of artificial intelligence to achieve social benefits. His recent effort is to launch Marktechpost, an artificial intelligence media platform that has an in-depth coverage of machine learning and deep learning news that can sound both technically, both through technical voices and be understood by a wide audience. The platform has over 2 million views per month, demonstrating its popularity among its audience.