Crawler Summary

contextual-RAG-chatbot answer-first brief

An enterprise-grade contextual RAG chatbot with ZenML pipelines, CrewAI agents, Ollama models, and OpenWebUI — designed for intelligent, local, and explainable document querying. Contextual RAG Chatbot **Agentic contextual RAG pipeline**: ingest resources → markdown → chunk → embed → pgvector → retrieve → rerank → answer, with ZenML pipelines. An advanced RAG (Retrieval-Augmented Generation) chatbot that uses contextual chunking, semantic embeddings, and agentic workflows to provide accurate, context-aware responses from your documents. 🚀 Features - **Contextual Chunking**: Intelligent docum Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Freshness

Last checked 2/25/2026

Best For

contextual-RAG-chatbot is best for crewai, multi-agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB REPOS, runtime-metrics, public facts pack

Claim this agent
Agent DossierGITHUB REPOSSafety: 66/100

contextual-RAG-chatbot

An enterprise-grade contextual RAG chatbot with ZenML pipelines, CrewAI agents, Ollama models, and OpenWebUI — designed for intelligent, local, and explainable document querying. Contextual RAG Chatbot **Agentic contextual RAG pipeline**: ingest resources → markdown → chunk → embed → pgvector → retrieve → rerank → answer, with ZenML pipelines. An advanced RAG (Retrieval-Augmented Generation) chatbot that uses contextual chunking, semantic embeddings, and agentic workflows to provide accurate, context-aware responses from your documents. 🚀 Features - **Contextual Chunking**: Intelligent docum

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Feb 25, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Feb 25, 2026

Vendor

Ravivaishnav20

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Setup snapshot

  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Ravivaishnav20

profilemedium
Observed Feb 25, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 25, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB REPOS

Extracted files

0

Examples

6

Snippets

0

Languages

python

Executable Examples

bash

git clone https://github.com/RaviVaishnav20/Contextual_RAG_Chatbot.git
cd Contextual_RAG_Chatbot

bash

cp env.example .env

bash

OPENAI_API_KEY=your_openai_api_key_here
CREWAI_TRACING_ENABLED=true

bash

# Use ZenML pyproject.toml (included in repo)
uv sync

# Initialize ZenML
uv run zenml init
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES uv run zenml login --local

bash

rm -rf "/Users/ravi/Library/Application Support/zenml/zen_server"
lsof -i :8237
kill -9 <PID>

bash

brew install postgresql@15 pgvector

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB REPOS

Docs source

GITHUB REPOS

Editorial quality

ready

An enterprise-grade contextual RAG chatbot with ZenML pipelines, CrewAI agents, Ollama models, and OpenWebUI — designed for intelligent, local, and explainable document querying. Contextual RAG Chatbot **Agentic contextual RAG pipeline**: ingest resources → markdown → chunk → embed → pgvector → retrieve → rerank → answer, with ZenML pipelines. An advanced RAG (Retrieval-Augmented Generation) chatbot that uses contextual chunking, semantic embeddings, and agentic workflows to provide accurate, context-aware responses from your documents. 🚀 Features - **Contextual Chunking**: Intelligent docum

Full README

Contextual RAG Chatbot

Agentic contextual RAG pipeline: ingest resources → markdown → chunk → embed → pgvector → retrieve → rerank → answer, with ZenML pipelines.

An advanced RAG (Retrieval-Augmented Generation) chatbot that uses contextual chunking, semantic embeddings, and agentic workflows to provide accurate, context-aware responses from your documents.

🚀 Features

  • Contextual Chunking: Intelligent document chunking with context preservation
  • Semantic Embeddings: Vector-based document retrieval using pgvector
  • Agentic Workflows: CrewAI-powered intelligent response generation
  • MLOps Pipeline: ZenML orchestration for reproducible ML workflows
  • Real-time Tracking: Phoenix observability for monitoring
  • FastAPI Integration: RESTful API endpoints for easy integration
  • OpenWebUI: Modern chat interface for user interaction

📋 Prerequisites

  • Python 3.13+
  • PostgreSQL with pgvector extension
  • Docker (for observability and UI)
  • uv package manager

⚡ Quick Start

1. Clone the Repository

git clone https://github.com/RaviVaishnav20/Contextual_RAG_Chatbot.git
cd Contextual_RAG_Chatbot

2. Environment Setup

Create your environment file:

cp env.example .env

Add the following to your .env file:

OPENAI_API_KEY=your_openai_api_key_here
CREWAI_TRACING_ENABLED=true

🏗️ Installation & Setup

Phase 1: ZenML Pipeline Setup

Note: There's a dependency conflict between ZenML and CrewAI, so we'll use separate pyproject.toml files for different phases.

Step 1: Initialize ZenML

# Use ZenML pyproject.toml (included in repo)
uv sync

# Initialize ZenML
uv run zenml init
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES uv run zenml login --local

Troubleshooting ZenML Setup: If you encounter port issues:

rm -rf "/Users/ravi/Library/Application Support/zenml/zen_server"
lsof -i :8237
kill -9 <PID>

Step 2: Install PostgreSQL with pgvector

Option 1: Install with Homebrew (Recommended)

brew install postgresql@15 pgvector

Option 2: Build pgvector from Source

brew install make gcc
git clone https://github.com/pgvector/pgvector.git
cd pgvector
make
make install

Step 3: Configure PostgreSQL

# Connect to PostgreSQL
psql -U ravi -d vector_db

# Enable vector extension
CREATE EXTENSION vector;
\dx

Troubleshooting PostgreSQL:

  1. Check if psql is installed:
which psql
  1. If missing, add Postgres to PATH:
nano ~/.zshrc
# Add this line:
export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"
source ~/.zshrc
psql --version
  1. Connect explicitly:
psql -U ravi -d postgres -h localhost
psql -U ravi -d vector_db -h localhost

Phase 2: Data Processing Pipeline

Step 1: Ingest Resources

Convert documents to markdown using Langchain Docling:

uv run python -m tools.run ingest

This processes files from the resources/ folder and saves markdown to data/markdown/.

Step 2: Contextual Chunking

Generate semantic chunks with context:

uv run python -m tools.run chunking

This creates:

  • metadata_sementic_chunk.json: Initial semantic chunks
  • metadata_context_chunk.json: Contextually enriched chunks

Step 3: Build Embeddings

Create and store vector embeddings in pgvector:

uv run python -m tools.run embedding

Step 4: Verify Database Setup

psql -U ravi -d vector_db
\dt

Step 5: Test Sample Query

uv run python -m tools.run query "specifically in Article (137)"

Phase 3: Agentic Workflows & API

Step 1: Switch to CrewAI Environment

Replace the pyproject.toml with CrewAI version and sync:

# Replace pyproject.toml with CrewAI version (included in repo)
uv sync

Step 2: Setup Phoenix Observability

Start Phoenix container for real-time tracking:

docker run -d \
  -p 9090:9090 \
  -p 6006:6006 \
  -p 4317:4317 \
  --name phoenix \
  --restart always \
  arizephoenix/phoenix:latest

Verify Phoenix is running:

docker ps --filter "name=phoenix"

Access Phoenix at: http://localhost:6006

Step 3: Start FastAPI Server

Launch the API endpoints:

uv run -m contextual_rag.model.inference.api.main

Access Swagger documentation at: http://localhost:8000

Step 4: Setup OpenWebUI

Setup the chat interface:

# Stop existing container if running
docker stop open-webui && docker rm open-webui

# Start OpenWebUI
docker run -d \
  -p 3000:8080 \
  --add-host=host.docker.internal:host-gateway \
  -e OPENAI_API_BASE_URL=http://host.docker.internal:8000/v1 \
  -e OPENAI_API_KEY=dummy-key \
  -v open-webui:/app/backend/data \
  --name open-webui \
  --restart always \
  ghcr.io/open-webui/open-webui:main

Access OpenWebUI at: http://localhost:3000

📁 Project Structure

Contextual_RAG_Chatbot/
├── configs/                    # Configuration files
├── contextual_rag/
│   ├── application/           # Application layer
│   │   ├── agents/           # CrewAI agents and tools
│   │   ├── extractors/       # Document extraction
│   │   ├── preprocessing/    # Data preprocessing
│   │   └── rag/             # RAG implementation
│   ├── infrastructure/       # Infrastructure components
│   └── model/               # ML models and API
├── data/
│   ├── artifacts/           # Generated chunks
│   └── markdown/           # Processed documents
├── pipelines/              # ZenML pipelines
├── resources/              # Source documents
├── steps/                  # Pipeline steps
└── tools/                  # Utility scripts

🔧 Configuration

Database Configuration (configs/config.yaml)

Configure your PostgreSQL connection settings in the config file.

Agent Configuration (contextual_rag/application/agents/crew/config/)

  • agents.yaml: Define AI agents and their roles
  • tasks.yaml: Configure agent tasks and workflows

🧪 Testing

Run various tests to verify functionality:

# Test basic functionality
python tests/simple_run.py

# Test RAG components
python tests/test_rag.py

# Test document conversion
python tests/test_document_conversion.py

# Test evaluation metrics
python tests/test_ragas.py

📊 Evaluation

The system includes RAGAS evaluation metrics for assessing RAG performance:

# Run evaluation
python -m contextual_rag.model.evaluation.ragas

🔍 Monitoring & Observability

  • Phoenix: Real-time tracing and monitoring at http://localhost:6006
  • ZenML Dashboard: Pipeline tracking and artifact management
  • FastAPI Metrics: API performance monitoring

🚀 Usage Examples

API Usage

import requests

# Query the RAG system
response = requests.post(
    "http://localhost:8000/rag/query",
    json={"query": "What are the HR policies regarding leave?"}
)
print(response.json())

Direct Python Usage

from contextual_rag.application.rag.rag import RAG

rag = RAG()
answer = rag.answer_question("What are the company bylaws?")
print(answer)

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

This project is licensed under the MIT License.

🆘 Troubleshooting

Common Issues

  1. ZenML Server Issues: Clear server data and restart
  2. PostgreSQL Connection: Verify credentials and pgvector extension
  3. Docker Containers: Check port availability and container status
  4. Dependency Conflicts: Use appropriate pyproject.toml for each phase

Getting Help

  • Check the troubleshooting sections above
  • Review test files for usage examples
  • Open an issue on GitHub for bugs or feature requests

🔗 Related Documentation

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB REPOS

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/snapshot",
    "contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/contract",
    "trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/trust"
  },
  "curlExamples": [
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/snapshot\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/contract\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_REPOS",
      "generatedAt": "2026-10-09T03:34:06.910Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "crewai",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "multi-agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Ravivaishnav20",
    "href": "https://github.com/RaviVaishnav20/contextual-RAG-chatbot",
    "sourceUrl": "https://github.com/RaviVaishnav20/contextual-RAG-chatbot",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-02-25T05:06:41.736Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/contract",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-25T05:06:41.736Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/trust",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-ravivaishnav20-contextual-rag-chatbot/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to contextual-RAG-chatbot and adjacent AI workflows.