Skip to content
Rohit-coder-pyPublic

About

Multi-agent AI workplace: chat with your PDF (RAG), research the live web, and get one clean, well-structured answer. Built with Streamlit, LangChain, Groq, FAISS and Docker.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

Repository files navigation

Aether - your AI workplace Planner decides, Researcher and Document Analyst fetch facts, Writer produces one clean answer

Python Streamlit LangChain Groq FAISS Docker Tests

Live demo Β  Docker Hub

Table of contents
  1. What is Aether?
  2. Demo links
  3. Preview
  4. Features
  5. How it works
  6. Tech stack
  7. Quick start
  8. Configuration
  9. Try it: example questions
  10. Project structure
  11. Testing and results
  12. Evaluation artifacts
  13. Limitations and privacy
  14. Roadmap
  15. Project journey
  16. Author

What is Aether?

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.

Demo Links

Link
🌐 Live App Click Here To Open
🐳 Docker Hub Click Here To Open
🎬 Test Recording evaluation/manual_testing.mp4

Preview

Aether answering PDF, web and combined questions

The manual test run: PDF questions, live web research, combined questions and "not in the document" traps.


Answer from the PDF with a table and page sources
Grounded in your PDF: structured answer with page-cited sources
Live web research result with sources
Live web research: fresh data with source links
One answer combining the PDF and the web
PDF + web in one answer: the Planner uses both tools
Aether says the answer is not in the document
Honest "not found": no invented facts
More screens (replace the placeholders with your own screenshots)
Chat home PDF upload
Chat home PDF upload
Agents at work Recent chats About page
Agents at work Recent chats About page

Features

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.

How it works

Animated architecture: user prompt to planner, then document analyst and researcher, then writer and the final answer
  1. 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.
  2. Document Analyst runs retrieval over the FAISS index and answers with a strict "context only" prompt.
  3. Researcher calls Tavily and returns titles, URLs and trimmed summaries.
  4. Writer Agent receives the question plus the Planner output and formats the final answer, adding no new facts.

The RAG pipeline

RAG pipeline: extract, wrap, chunk, embed, index, retrieve

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.

Tech stack

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

Quick start

You need Python 3.10+ (3.11 recommended) and two free API keys: Groq and Tavily.

Option A: run locally

# 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.py

Open http://localhost:8501. The first run downloads the embedding model (about 90 MB), so give it a minute.

Option B: run with Docker

docker build -t aether .
docker run --env-file .env -p 8501:8501 aether

Or, once the image is on Docker Hub:

docker run --env-file .env -p 8501:8501 rohitcoderpy/aether:latest

API 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.

Configuration

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

Try it: example questions

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.

Project structure

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

Testing and results

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.

19 of 19 tests passed after fixes (100%)
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.

Evaluation artifacts

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

Limitations and privacy

  • 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 429 on 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.

Roadmap

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

Project journey

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

Author

Rohit Jha Β· BCA student, building towards an AI/ML career

GitHub LinkedIn


Stitched together from many small specialists.

About

Multi-agent AI workplace: chat with your PDF (RAG), research the live web, and get one clean, well-structured answer. Built with Streamlit, LangChain, Groq, FAISS and Docker.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages