agentleFS
QubinodeQubinode/qubinode_navigator/.cursor/rules/rag-knowledge.mdc

qubinode_navigator / rules

Cursor rule1 starsChanged 10 months agoMITView on GitHub

Qubinode Navigator includes a RAG (Retrieval-Augmented Generation) system for querying documentation and troubleshooting knowledge. The RAG store implementation is in: - ai-assistant/src/rag_store.py - Core RAG functionality - airflow/plugins/qubinode/rag_store.py - Airflow integration

  • Sends data out

The file

Files
rag-knowledge.mdc
---
globs: ["**/*rag*", "**/*knowledge*", "**/*embedding*", "ai-assistant/**"]
alwaysApply: false
---

# RAG Knowledge Base Operations

## Overview

Qubinode Navigator includes a RAG (Retrieval-Augmented Generation) system for querying documentation and troubleshooting knowledge.

## Components

- **Vector Store**: PostgreSQL with pgvector extension
- **Embedding Service**: Host service on port 8891
- **Knowledge Sources**: ADRs, deployment docs, troubleshooting guides

## Query the Knowledge Base

```bash
# Via AI Assistant API
curl -s -X POST http://localhost:8080/api/query \
  -H "Content-Type: application/json" \
  -d '{"query": "how to deploy OpenShift disconnected"}'

# Via RAG CLI
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}/ai-assistant
python3 scripts/rag-cli.py query "your question here"
```

## Ingest Documents

```bash
# Single document
python3 scripts/rag-cli.py ingest /path/to/document.md

# Bulk ingestion
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}
python3 scripts/prepare-rag-docs.py
```

## Check RAG Statistics

```bash
# Get stats
python3 scripts/rag-cli.py stats

# List indexed documents
python3 scripts/rag-cli.py list
```

## Supported Document Types

- Markdown (.md) - Primary format
- Text files (.txt)
- Python files (.py) - For code documentation
- YAML/JSON - Configuration references

## RAG Store Location

The RAG store implementation is in:
- `ai-assistant/src/rag_store.py` - Core RAG functionality
- `airflow/plugins/qubinode/rag_store.py` - Airflow integration

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.