Skip to content

Addyk-24/DeepRetrieval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DeepRetrieval

Project Overview

DeepRetrieval is a minimal, production-oriented implementation of a Retrieval-Augmented Generation (RAG) agent exposed through a Model Context Protocol (MCP) server, built without using any external systems.

โœจ Key Features

  • ๐Ÿง  Custom RAG Pipeline

    • Document chunking
    • TF-IDF / classical vector search
    • Context injection into prompts
  • ๐Ÿ”Œ MCP Server (JSON-RPC)

    • Fully compliant MCP tool server
    • Stdio-based transport
  • ๐Ÿ›  Agentic Tool Calling

    • Explicit tool routing
    • Deterministic execution
    • No hidden orchestration
  • ๐Ÿ” Local & Web Search Tools

    • Local document search
    • Optional web search integration
  • โš™๏ธ Zero Framework Dependency

  • ๐Ÿงฑ Use of ollama that is local llm use for seamless streaming of queries

User Query
    โ†“
Agent Controller
    โ†“
Tool Router
    โ”œโ”€โ”€ Document Search Tool (TF-IDF)
    โ”œโ”€โ”€ Web Search Tool
    โ””โ”€โ”€ Utility Tools
    โ†“
Context Composer
    โ†“
LLM (Answer strictly from provided context)

๐Ÿ† Why This Project Matters

Most production AI systems do not rely on public agent frameworks. This project demonstrates how to build:

  • Reliable agents

  • Transparent reasoning

  • Auditable tool execution

  • Vendor-neutral architectures

โ€”all from scratch.

alt text

Example

  1. Built from scratch - No LangChain dependency shows deep understanding
  2. Proper architecture - Clean separation: chunking, embedding, retrieval, inference
  3. Working semantic search - Similarity scores (0.83, 0.74, 0.71) show it's finding relevant content
  4. Database integration - Vector storage with proper indexing
  5. Token-aware chunking - Smart overlap strategy preserves context

๐Ÿ‘ค Author

Aditya Katkar

About

end-to-end information synthesis agent designed for high-precision, context-aware question answering and document analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors