Table of contents
A normal chatbot is one model answering everything from memory. Aether splits the job between small specialists, the way a real office would:
- a Planner reads your question and decides what information is needed,
- a Document Analyst answers from your own PDF (RAG, with page numbers),
- a Researcher searches the live web for anything that is not in your file,
- a Writer turns the findings into one clean, well-structured answer.
The result is an answer grounded in your documents and fresh sources, not guesswork. You can watch the agents work in a live status panel, so nothing is a black box.
Built as a hands-on AI Engineering capstone: multi-agent orchestration, retrieval-augmented generation, tool calling, a custom-themed Streamlit UI, Docker packaging and a 19-case manual evaluation.
| Link | |
|---|---|
| π Live App | Click Here To Open |
| π³ Docker Hub | Click Here To Open |
| π¬ Test Recording | evaluation/manual_testing.mp4 |
The manual test run: PDF questions, live web research, combined questions and "not in the document" traps.
More screens (replace the placeholders with your own screenshots)
| Chat home | PDF upload |
|---|---|
![]() |
![]() |
| Agents at work | Recent chats | About page |
|---|---|---|
![]() |
![]() |
![]() |
| Feature | What it does | |
|---|---|---|
| π | Talk to your PDF | Upload a text-based PDF and ask anything. Answers use only the document and cite page numbers. |
| π | Live web research | Tavily advanced search returns four sources with titles, links and summaries. |
| π§΅ | Both in one question | The Planner can call the document tool, the web tool, or both, then merge the results. |
| β¨ | Answers that look finished | A dedicated Writer agent adds headings, bullets and tables when they help. |
| π‘οΈ | Fewer hallucinations | Strict document prompt, low temperature (0.2), and a clear "not found" response. 0 of 3 trap questions were hallucinated in testing. |
| π | Visible reasoning | A live status panel shows Using Planner Agent... Using Writer Agent... |
| ποΈ | Chat history | Every conversation is titled from its first message and listed under Recent Chats. |
| π§° | Resilient tool calls | Middleware turns tool errors into messages so the agent can recover instead of crashing. |
| π¨ | Patchwork Stitched theme | A custom hand-sewn look: fabric background, stitched borders, patch-style cards. |
| π³ | Docker ready | CPU-only PyTorch, embedding model baked into the image, non-root user, health check. |
- Planner Agent (LangChain
create_agent) reads the question and picks the tools. The document tool is only attached when a PDF is loaded, so the model can never call a tool that has nothing to read. - Document Analyst runs retrieval over the FAISS index and answers with a strict "context only" prompt.
- Researcher calls Tavily and returns titles, URLs and trimmed summaries.
- Writer Agent receives the question plus the Planner output and formats the final answer, adding no new facts.
A signature of file name + size decides when to re-index, so ordinary Streamlit reruns stay fast. Nothing is written to disk: the vectors live in memory and disappear when the PDF is removed.
Want the deep technical dive (agents, RAG pipeline, session state)? Open the About page inside the app β it ships with the project in
pages/1_About.py.
| Layer | Technology |
|---|---|
| UI | Streamlit (multipage), custom CSS theme in patchwork.py and .streamlit/config.toml |
| LLM | openai/gpt-oss-20b on Groq through langchain-groq (temperature 0.2) |
| Agents | LangChain 1.x: create_agent, @tool, @wrap_tool_call middleware, ChatPromptTemplate |
| RAG | pypdf β RecursiveCharacterTextSplitter (1000 / 150) β all-MiniLM-L6-v2 (384-dim) β FAISS (top-4) |
| Web research | Tavily search API (advanced depth, 4 results) |
| Packaging | Docker (python:3.11-slim), python-dotenv for configuration |
You need Python 3.10+ (3.11 recommended) and two free API keys: Groq and Tavily.
# 1. Get the code (change the URL if your repository name is different)
git clone https://github.com/Rohit-coder-py/Aether.git
cd Aether
# 2. Create and activate a virtual environment
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
# 3. Install the dependencies
pip install -r requirements.txt
# 4. Add your API keys
cp env.example .env # Windows (cmd): copy env.example .env
# then open .env and paste your GROQ_API_KEY and TAVILY_API_KEY
# 5. Start the app
streamlit run app.pyOpen http://localhost:8501. The first run downloads the embedding model (about 90 MB), so give it a minute.
docker build -t aether .
docker run --env-file .env -p 8501:8501 aetherOr, once the image is on Docker Hub:
docker run --env-file .env -p 8501:8501 rohitcoderpy/aether:latestAPI keys are never baked into the image; they are passed at run time. See Quick start and Configuration above for every setting, and the Docker run commands in this section.
| Variable | Required | Used for |
|---|---|---|
GROQ_API_KEY |
β | Planner, Document Analyst and Writer (LLM calls) |
TAVILY_API_KEY |
β | The live web Researcher agent |
Tunable settings live at the top of app.py:
| Setting | Value | Meaning |
|---|---|---|
model_name |
openai/gpt-oss-20b |
LLM served by Groq |
temperature |
0.2 |
Low = stable, factual wording |
chunk_size / chunk_overlap |
1000 / 150 |
How the PDF is split |
RETRIEVAL_K |
4 |
Passages retrieved per question |
max_results |
4 |
Web sources per research call |
Upload sample_data/Intro_to_LLMs.pdf and try:
| Type | Question |
|---|---|
| π PDF only | What is an embedding according to the document, and how many numbers does the all-MiniLM-L6-v2 model produce in a vector? |
| π Web only | What is the latest stable version of Python? |
| π§΅ PDF + web | According to the PDF, what is RAG? Then search the web for recent news about new RAG techniques. |
| π« Not in the PDF | According to the document, how much does the ChatGPT Plus subscription cost per month? (Aether should say it cannot find it.) |
All 19 evaluation questions: evaluation/demo_questions.md.
Aether/
βββ app.py # Main chat page: agents, tools, RAG, session state
βββ pages/
β βββ 1_About.py # About page: user view + technical deep dive
βββ patchwork.py # "Patchwork Stitched" CSS + HTML helpers
βββ .streamlit/config.toml # Theme colours and fonts
βββ assets/logo.png # Logo
βββ sample_data/ # Intro_to_LLMs.pdf (4-page test document)
βββ evaluation/ # Test report, demo questions, test-run recording
βββ preview/ # README images, animated SVGs, GIF, screenshots
βββ pseudo_codes/ # Earlier learning versions that led to Aether
βββ requirements.txt # Python dependencies
βββ env.example # Template for your API keys
βββ Dockerfile # Container build
βββ .dockerignore
βββ .gitignore
Aether v1.0 was evaluated end to end through the real Streamlit UI with 19 manual test cases. Every answer was checked against the actual PDF text and, for current-events questions, against independent web searches.
| Metric | First run | After fixes |
|---|---|---|
| Tests passed | 18 / 19 (94.7%) | 19 / 19 (100%) |
| Correct tool selection | 18 / 19 | 19 / 19 |
| Correct page cited (PDF tests) | 7 / 8 | 8 / 8 |
| Hallucinations on missing information | 0 / 3 | 0 / 3 |
Honest failure analysis: the first run caught one functional failure (Test 09: a current-events question the Planner answered from stale memory instead of searching) and one citation miss (Test 01). Both root causes were diagnosed, fixed with six small prompt/tool changes, and verified through the live app β the full story is in evaluation/test_results.md, section 7.
| File | What is inside |
|---|---|
evaluation/test_results.md |
The 19-case evaluation report with failure analysis and post-fix verification |
evaluation/demo_questions.md |
The exact questions used in testing |
evaluation/manual_testing.mp4 |
Screen recording of the manual test run |
- Text-based PDFs only. Scanned images need OCR first.
- One PDF at a time. Chats live in the browser session, so a refresh starts clean.
- No follow-up memory yet. The Planner does not receive earlier chat messages.
- Free-tier rate limits. Groq's tokens-per-minute limit can return a
429on rapid back-to-back questions (the app shows a clean error). - Privacy. The PDF is processed in memory, but the retrieved passages and your web queries are sent to the Groq and Tavily APIs. Avoid highly confidential files.
| Priority | Item |
|---|---|
| β Shipped | Planner forced to researcher_agent for time-sensitive questions (fixes Test 09) |
| β Shipped | Writer always ends with a Sources section (fixes Test 01) |
| π‘ V1.1 | Retry with backoff on Groq 429 rate limits |
| π‘ V2 | Conversation memory for the Planner, persistent chat history |
| π’ Later | Multi-PDF support, OCR for scans, automated RAG evaluation (RAGAS / LangSmith), CI with GitHub Actions |
Aether did not appear in one step. The pseudo_codes/ folder keeps the practice versions it grew from:
simple streamlit chatbot β session_state_chatbot β Document_Brain (RAG over a PDF) β Multi-Agent-System β Aether
Rohit Jha Β· BCA student, building towards an AI/ML career








